CS 100 Spring 2014
Lab 4 |
Loop
|
Due Monday March, 10th
Using the Processing language/environment develop the following three programs.
Each program contains at least one loop.
1. [2 pts] A sketch named circles
that creates an output similar to the following image.
2. [2 pts] A sketch dice
that initializes the variables as
int canvasSize = 300; int dotSize = 25; int dotX = 40; int dotY = 40; int incX = 50; int incY = 50;
followed by a sequence of graphics calls, including a loop, to produce this image
Changing the size of the canvas to 400 should produce instead