Animation demo - use position:
* Use the textarea to write a function(time, position, canvas, context) to move a rectangle as a function of its position (vector of two numbers).