/coffeetree

render the Pythagoras tree onto a canvas

Primary LanguageCoffeeScript

Construct a copy of the Pythagoras tree and display it on an html5 canvas. 

Organized to exploit the correspondence between squares in the Pythagoras tree and tree data structures.

Written in CoffeeScript (http://jashkenas.github.com/coffee-script/)

Inspired by Buddhabrot (http://jashkenas.s3.amazonaws.com/misc/buddhabrot/buddhabrot.html)

uses jasmine-node (https://github.com/mhevery/jasmine-node) for unit testing
-run tests with:
node lib/jasmine-node/cli.js . --coffee --verbose

unit tests require npm packages coffee-script and jasmine-node
-get by running in repository root:
npm install coffee-script
npm install jasmine-node

npm is available at https://github.com/isaacs/npm