HTML and CSS Reference
var circle = new lime.Circle()
This example is a modified version of the helloworld example you can generate from the command line with
bin/lime.py create helloworld . Getting the example up and running is more involved than using
Crafty because you need to download LimeJS, run the bin/lime.py init command to download the de-
pendencies, and then create the project directory.
As you can see, everything is a little more verbose because of the heavy namespacing that the Google Closure
library uses, but because of the power of the library, the code still manages to stay fairly compact.
A couple of nice things that LimeJS does are worth mentioning. The first is the mechanism it uses to track
touches. The e.swallow code intelligently applies only to the same touch that initiated the original event. It
can track the touch identifier for you internally, so you don't need to worry about it.
The animation system that LimeJS provides makes it easy to set up fire-and-forget animations (much