(b)
(c)
(d)
In Homework 2, we've covered nested loops as well as repetition. In the first exercise, we've created a program which created random sized squares with random colors. After that, we created a loop to simulate a change every second. In the first two exercises, I've learned how to use the loop(), draw(), setup(), and random() functions. In the third exercise, we've used codes from the pdf file and modified it to create our own nested loop. With the nested loop exercise, I've created a finer gradient on a larger sized sketchboard. In the fourth exercise, I combined the knowledge of the previous exercises to create a pattern. With nested loop, you can create all types of patterns.
No comments:
Post a Comment