grass-generator
v1.0.4
Published
Drawing grass figure like Github contributions in svg or canvas.
Downloads
3
Maintainers
Readme
GrassGenerator
Install
$ npm i grass-generator
Usage
You can see the details how to use. (example)
SVG
import { drawGrassSvg } from 'grass-generator';
drawGrassSvg(document.getElementById('svg'), { data });
Canvas
import { drawGrassCanvas } from 'grass-generator';
drawGrassCanvas(document.getElementById('canvas'), { data });