Link
link 1 (page 1-6)
Link 2 (page 7-9)
Brief Description
In this mini-project, I produced three groups of patterns, and they were all based on the repeating rectangles that start from the right-up corner. In the first group, I changed the number of repeats. In the second group, I added some random rectangles in different colors. In the third group, I changed the rectangles to circles and filled them with white color in different transparency.
Visual Documentation
Reflection about the code:
- If I want to fill certain colors to different shapes in the for loop, I can use “if” to distinguish them with different “i”. Like this part of the code.
- If we want to change the pattern by using “translate()” and “rotate()”, it’s important to verify the original relationship between the shape and the original point. So that, it will be easy to predict where the patterns will appear after the translation.