Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisjaure/genart
Generative art for the rest of us.
https://github.com/chrisjaure/genart
Last synced: 1 day ago
JSON representation
Generative art for the rest of us.
- Host: GitHub
- URL: https://github.com/chrisjaure/genart
- Owner: chrisjaure
- License: mit
- Created: 2012-06-18T20:24:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-22T17:17:30.000Z (over 12 years ago)
- Last Synced: 2024-08-02T05:10:31.840Z (3 months ago)
- Language: JavaScript
- Size: 212 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# genart
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](https://github.com/paperjs/paper.js) to run on node.js.## Getting Started
Install the module with: `npm install -g genart`Generate some art!
```
genart -i path/to/examples/circles.js -o ~/genart.png
```Running that will produce a png similar to the following:
![circles.js result](http://cleverchris.com/genart.png)## Documentation
Since genart is simply extending paper.js, take a look at the [paper.js docs](http://paperjs.org/reference/) for more details._More docs coming soon._
## Examples
The extensions can be seen in this example:
```javascript
var circle = new canvas.Path.Circle([0, 0], 50)
.set({
fillColor: 'red',
strokeColor: 'green',
strokeWidth: 2,
opacity: 0.2,
blendMode: 'overlay'
})
.nthChild('15n', function() {
this.fillColor = 'yellow';
})
.nthChild('6n', function() {
this.scale(0.5);
})
.tile();
```## License
Copyright (c) 2012 Chris Jaure
Licensed under the MIT license.