Also, we will often put all of our "changes" into a single function, so there is only one requestAnimationFrame. That function might call other functions.

And, since we don't know how fast the loop will go (since the browser might do some work between calls, or the stuff we do might take some time), we need to look at the actual "clock time" to make sure that things go at the right speed.

Here's a silly example where we make something blink (the hard way). The trick is that we want to change color every 250ms (not faster). Look at the code. Some text to blink

OK, that was horrible. Let's try to see if this is any better? Or, maybe even this one.

Those are all really annoying looking - You can try something better on the next page...