![](https://openlab.bmcc.cuny.edu/mmp-210-spring-22/wp-content/uploads/sites/2165/2022/04/Patterndom.png)
![](https://openlab.bmcc.cuny.edu/mmp-210-spring-22/wp-content/uploads/sites/2165/2022/04/Patterndom2-1.png)
![](https://openlab.bmcc.cuny.edu/mmp-210-spring-22/wp-content/uploads/sites/2165/2022/04/Pattermdom3.png)
![](https://openlab.bmcc.cuny.edu/mmp-210-spring-22/wp-content/uploads/sites/2165/2022/04/Patterndom2-1024x455.png)
This is my Pattern with a looped function and DOM elements.
Pictures 1-3 are random patterns, and the 4th pictures is showing that the pattern will be save but the name of what is written in the text box.
Here is my code: https://editor.p5js.org/GalBB/sketches/5btnPVbtj