Working with HTML5 canvas API can become time-consuming and cumbersome, so during the last years many libraries that wrap those API came to existence. Kineticjs is one of the best with its ease of use, solid API, great features and nice tutorials.
Want to see a demo? Visit this link and you will see a couple of spotlights dancing on a dark wooden background.
You can browse or clone the original code from our github page…. have fun!