gen-mondrian
v0.0.8
Published
Lorem ipsum, but for images. See [demo and rationale](https://www.geoffliu.me/mondrian.html).
Downloads
3
Readme
Random Mondrian Generator
Lorem ipsum, but for images. See demo and rationale.
Usage
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)
TODOs
- [ ] Allow user to specify size of generated image
- [ ] Express route handler
- [ ] Simpler client-side interface
- [ ] React wrapper
- [ ] Add some kind of testing