The Timestamp Argument
We'll cover the following...
The last thing we are going to look at is the argument requestAnimationFrame
passes in to the callback function. The following is the callback function signature I showed you earlier:
Press + to interact
function draw() {...requestAnimationFrame(draw);}
That is still accurate and totally works. There is an optional argument representing the exact time the callback function is called (aka a timestamp) that I kinda did not cover, and ...