~jagtalon/generative-art-template

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

clone

read-only
https://git.sr.ht/~jagtalon/generative-art-template
read/write
git@git.sr.ht:~jagtalon/generative-art-template

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/

#Requirements:

How to use the template

#Basics:

#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

#Enjoy!

  • 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!

#Contributing:

Send patches to ~jagtalon/public-inbox@lists.sr.ht (See archives)

Do not follow this link