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

 
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus