This is an example of how to fill an area of an image, displayed in a HTML Canvas, instantly.

The code for this is available on Github, or just view the page source. You can also read a description of how it works my blog post about it.