It depends on what you mean by "movie".
Option#1
You could convert each custom drawing into an image with canvas.toDataURL
.
Then create a loop with window.requestAnimationFrame
and loop through your images with a series of context.clearRect
+ context.drawImage( theNextImage,0,0)
.
Option#2
If you wanted an exportable version of your animation, you could use one of the client-side tools that converts a series of canvas displays into an animated .gif. Here's one example: http://antimatter15.com/wp/2010/07/javascript-to-animated-gif/
Option#3
If you want to encode the set of html canvas drawings into a video format (eg, .MP4) then you'll need additional sophisticated software client-side.