Use /bin/sh instead of /bin/bash
README: Add option to download tagged version
README: Notes for people who don't want CoffeeScript
A minimalist template for starting new generative art projects. This was made for me specifically, but you're free to use it! I wrote about it here: https://jagtalon.com/2021/02/20/tiny-generative-art-template/
wget https://git.sr.ht/~jagtalon/generative-art-template/archive/1.0.0.tar.gz -O - | tar -xz
git clone https://git.sr.ht/~jagtalon/generative-art-template [new-artwork]
./build.sh
./server.sh
art.coffee
http://localhost:3000/
to see the changes.How do I change the dimensions of the art?
Modify the width
and height
properties in <canvas>
in index.html
.
What if I need NPM packages?
You can import files directly from websites like https://www.skypack.dev/ in art.coffee
.
What if I don't like CoffeeScript?
Feel free to modify the code to your needs! I personally enjoy CoffeeScript, but you can remove that dependency and you'll have an even leaner setup!
Send patches to ~jagtalon/public-inbox@lists.sr.ht (See archives)