Purpose:
Illustrate the use of the Java "for" loop.
Draw three rectangles to the canvas (screen) using a "for" loop using the default colors.
Loop for 3 times as stated in the variable named "nTimesInLoop".
The variable "i" will go from 0 to 2 incremented by 1.
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_0002
Built with Processing