update for time-base motion

added a second example for time-based motion which works on hardware accelerated 2d canvas.