To view this content, you need to install Java from java.com

Purpose:
Illustrate the use of the Java "for" loop.
Draw three rectangles to the canvas (screen) using a "for" loop using the default colors.

The variable "i" will go from 1 to 8 incremented by 2.
The toal times in the lopp will be 4.

Default canvas size is width 100 and length 100.
Default canvas color is a gray.
Default stroke (outline) color is black.
Default fill color (for shapes) is white.

Source code: for_loop_0004

Built with Processing