Grow.js is a simple javascript implementation of a Lindenmayer System based on the book The Algorithmic Beauty of Plants. About two chapters into reading this, I got so excited about it I had to try building my own simulator.
Only tested on Firefox 5, Chrome 12-13 and Safari 5 so far. A very small set of tests can be run via the spec.html
page.
This project uses HTML5's canvas
element to do the drawing, plus localStorage
for saving and loading presets, but the bulk of the Javascript is built upon the shoulders of:
- Backbone and Backbone.localStorage
- PEG.js for parsing
- yabble for CommonJS dependency management
- underscore
- jquery
- jquery-ui
- Aristo jquery ui theme
- Jasmine for testing
- modernizr
- HTML5 Boilerplate