Learn creative coding writing simple programs
10. Draw circles and rectangles, change fill color
Learn how to use the ellipse() function to draw ovals, circles and even an egg. We also show how to use rect() to draw rectangles, and how to change the fill color for both ellipse() and rect().
Instead of guessing RGB values, you can use the color selector to pick a color, which is much easier.
You probably know, but we remind you the most basic shortcut keys: CTRL+C for copy, CTRL+X for cut and CTRL+V for paste).
Code editor
You can make changes to the code below. Then
Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)
To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:``` void setup() { size(600, 600); } ```