For loops allow you to both create complexity, save time and introduce dynamic elements to p5.js.
This video follows on from the introduction to if statements (conditional statements) here:
• p5.js part 3: conditional statements / if ...
The video before that was about variables in p5.js:
• p5.js part 2: introducing variables to mak...
More on for loops can be found on w3schools here:
https://www.w3schools.com/js/js_loop_...
and the Mozilla JavaScript pages here:
https://developer.mozilla.org/en-US/d...
If you want to see the code for the eyeballs it's here:
https://amcc.github.io/p5js-eyeballs/