Click the code to go to the P5.js
Week 4
Make something with a lot of repetition, more than you want to hand-code.
You could take something you've already done where there was a lot of repetition in the code and see if you can re-write it using a loop so that instead of 28 lines of code that call rect(), you have 1 line of code calls rect() inside of a loop that goes around 28 times. How do you need to rework the way you position that rect() in order to make it work in a loop?
For week 4 I tried to fill the screen with random p\color of pixels in a blue shades
|