Loopception
Loopception
We're going to play with loops (iteration) today,
and add a bit of animation and interactivity into them.
Completed
Basics of HTML & CSS
Block-based Programming
Code Comments
Basics of Animation
Today
More P5.js
Loops
Loops inside of loops
Upcoming
More P5.js
More JavaScript
No typing practice today
Part 1: Looking at Loops in Javascript
First, it's important to understand the code we're looking at.
As far as I'm concerned, this is the most important video today.
Part 2: Try it
Let's try actually running some code in P5.js with the loop.
It's a pretty common thing actually.
Let's try it.
Create more weird experiments playing with animation, interactivity, and now loops.
On your slide for today, add a video showing experiments with the mouseX and mouseY built-in variables.