A minimalist template for canvas-based art.
c37f3082 — Jag Talon 2 years ago
Use /bin/sh instead of /bin/bash
1e995986 — Jag Talon 2 years ago
README: Add option to download tagged version
618c8da0 — Jag Talon 2 years ago
README: Notes for people who don't want CoffeeScript



You can also use your local clone with git send-email.

#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)