This week I made a sketch mainly with for loops and arrays.
For this sketch, the challenge I encountered is when I wanted different points on the 5 white lines to have different y position, I had to write a separate array for them, while keeping them in the same x position.
-> Similar to the idea of nested for loop to write a grid, I used a nested array[j] to assign different y position in the array[i]
After finishing this sketch, I realize it can be quite tricky for me to determine at the beginning of a sketch, whether to use a for loop, an array or class objects to achieve my goal. I feel like these three tools are all useful when it comes to creating repetitive patterns.
