Lorem ipsum, but for images. See demo and rationale.
Install from NPM:
npm i gen-mondrian
The module exports a single default function that accepts a canvas element. When run, it generates an image of 16:9 aspect ratio and fills the canvas.
import genMondrian from 'gen-mondrian'
const el = document.getElementById('my-canvas')
genMondrian(el)
- Allow user to specify size of generated image
- Express route handler
- Simpler client-side interface
- React wrapper
- Add some kind of testing