Canvas Cheat Sheet

HTML5 Canvas Acceleration Tutorial

Discussion

To create a quadratic motion animation with HTML5 Canvas, we can increment the vx (horizontal velocity), the vy (vertical velocity), or both the vx and the vy of an object for each frame, and then update the position of the object, according to the equation of acceleration: