🎗 Loops do not need to repeat actions exactly
Used to repeat actions quickly or perform recursion.
Syntax
for ( let counter=0; counter < 100; counter++ ) {
rect(counter, counter, 10, 10);
} ;
😬 Avoiding an infinite loop ♾
- ⚠️ Turn off auto-refresh!
- You can stop the draw() loop by adding noLoop() to setup().