Read http://processing.org/learning/gettingstarted/ in its entirety before doing any of these assignments. All assignments on this page are based on exercises from that page.
Assignment – Ellipse
Type the following code into Processing:
Clarify in your mind what the individual numbers in the command are. Note the semicolon at the end of the line. What happens of you run the program without the semi-colon?
Save your program as Ellipse.pde, and submit to the relevant hand-in folder.
Assignment – Circles
Type the following code into Processing:
Clarify in your mind the purpose of the setup() method. What happens when you change the numbers and run the program. Try it, then put it back to original.
In the draw() method, what happens if you change 255 in the fill() method to another number? What happens if you change the first 80 in the ellipse() method to 40?
Save your program as Circle.pde, and submit to the relevant hand-in folder.
Assignment – Rectangles
Modify the example 2-2 program so it draws rectangles instead of ellipses.
Note: this assignment will be submitted after doing the activity below.
Assignment – Create a Standalone Program
Export your rectangle program as a standalone application, and submit the entire Rectangle folder to the relevant hand-in folder.