A framework for generative art made with Coffeescript, D3, Canvas and random numbers.
A boilerplate art script file with useful libraries and scaffolding is provided to create new works quickly. (
npm install before your first use.
npm dev in another tab to automatically compile any .coffee file when it is saved
To run any individual art script, you can (assuming you are in the project root) do
To run the boilerplate example you would do
To get started on a new artscript, you can clone the boilerplate
cp src/artscripts/_boilerplate.coffee src/artscripts/MY-NEW-ARTSCRIPT.coffee and then modifying that with your editor
watch -n0 node dist/artscripts/10-14 repeatedly runs the
ffmpeg -framerate 24 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p $FILENAME.mp4 combines all exported .png files into a movie
There are a few common options used for artscripts.
tick()function in the artscript. In
-moviemode, each tick is exported as a frame.
The development web view is located at
To quickly see changes when iterating on a script, this creates a simple web server that shows the latest .png created in the
/dist/ folder. You can navigate to it at
Works well when paired with atom-browser