![](https://openlab.bmcc.cuny.edu/mmp-210-spring-22/wp-content/uploads/sites/2165/2022/05/nested-loop-1.png)
![](https://openlab.bmcc.cuny.edu/mmp-210-spring-22/wp-content/uploads/sites/2165/2022/05/nested-loop-2.png)
![](https://openlab.bmcc.cuny.edu/mmp-210-spring-22/wp-content/uploads/sites/2165/2022/05/nested-loop-3.png)
This is my nested loop\generating patterns, I used a function to draw in the image, and then translated the x and y after using a nested loop, and added so rotation and random scaling between 1 and 4.
Here is my code: https://editor.p5js.org/GalBB/sketches/TXhCGCwkH