~jagtalon/generative-art-template

ref: 1.0.0 generative-art-template/art.coffee -rw-r--r-- 224 bytes
618c8da0 — Jag Talon README: Notes for people who don't want CoffeeScript 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
import TinyCanvas from './tiny-canvas.js'

width = canvas.width
height = canvas.height

context = canvas.getContext('2d')
draw = new TinyCanvas(context)

# Fill the background
draw.rect(0, 0, width, height, "fill", "black")