generative-art-template/README.md -rw-r--r-- 1.6 KiB
c37f3082Jag Talon Use /bin/sh instead of /bin/bash 8 months ago

#Generative Art Template

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/


How to use the template


#Download the template. Either:

  • Download and extract the template: wget https://git.sr.ht/~jagtalon/generative-art-template/archive/1.0.0.tar.gz -O - | tar -xz
  • Clone the repo: git clone https://git.sr.ht/~jagtalon/generative-art-template [new-artwork]

#Start CoffeeScript compiler and server:

  • Build the project: ./build.sh
  • Also run the local server: ./server.sh


  • Start writing code in art.coffee
  • Load http://localhost:3000/ to see the changes.

#How to use:

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)