Generative art with canvas.
Generative art for the rest of us. This is an attempt to create a nice api for creating generative art. Built on top of a modified Paper.js.
Install the module with:
npm install genart
Generate some art!
genart -i ../examples/circle.js -o ~/genart.png
Since genart is simply extending paper.js, take a look at the paper.js docs for more details.
More docs coming soon.
The extensions can be seen in this example:
var circle = Circle0 0 50setfillColor: 'red'strokeColor: 'green'strokeWidth: 2opacity: 0.2blendMode: 'overlay'nthChild'15n'thisfillColor = 'yellow';nthChild'6n'thisscale0.5;tile;
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Copyright (c) 2012 Chris Jaure
Licensed under the MIT license.