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).

Tags: ellipse, oval, circle, rect, fill, color_picker, copy, cut, paste

Code editor

You can make changes to the code below. Then
Questions and comments are welcome! :) But please try to stay close to the topic of this episode. Use the Processing forums for help with your Processing projects (or hire me for help ;-)