FSEM 131
Lab 1
2D Shapes
Due Friday, September 14, at 10:00 p.m. on Moodle

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, which is at least more difficult than the two above.
As a last line of your program, add the command
save("username.png");
to save your flag as an image file.

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...