Work on in class, and deadline is midnight Sept. 29

You can only submit the assignment if you are in class on Sept. 29. I do drop the lowest homework/classwork grade at end of semester.


Assignment Description: Use some form of iteration to create an aesthetically pleasing pattern. In addition, you will place an overlay over your pattern when the user clicks on the canvas.


Based on what you have learned about looping, you are to create a pattern that incorporates at least 3 primitive shapes. I will demonstrate a few at beginning of class and share even more screenshots of my examples in a PowerPoint file. However, greater creativity might come if you were to do a quick Google image search for “geometric patterns”.

Then recalling what you learned in Chapter 5 about Boolean variables, program your sketch so that when the user clicks on it, an additional overlay will appear on top of your pattern. (See exercise 5-8.)  In the interest of time, you overlay can be as simple as lines displayed across the screen… or anything you wish.


Here is mine before and after mouse click.