CS 100 Spring 2014
Lab 1 |
2D Shapes
|
Due Monday, Februrary, 10th
To review the lecture material refer to this tutorial on coordinate system and shapes.
Using the Processing language/environment develop the following three programs.
1. [2 pts] A sketch named japanFlag
that creates an output similar to this image.
2. [4 pts] A sketch named switzerlandFlag
that creates an output similar to this image.
3. [4 pts] A sketch named notAFlag
that creates an output similar to the following image.
You should at least use four colours and have approximate overlapping among the centered shapes.
Hint: Pythagorean theorem may be useful!
Bonus Write a sketch for another flag.
Extra points for a difficult flag, such as Turkey, UK, Brazil, Canada and so on:
the tutorial on curves will get you started on the challenge...