simplify-sketch
path simplification for 'sketch'
npm install simplify-sketch
Want to see pretty graphs? Log in now!
2 | downloads in the last week |
4 | downloads in the last month |
Last Published By | |
---|---|
Version | 1.0.0 last updated 2 years ago |
Keywords | path, sketch, canvas, simplify |
Dependencies | simplify |
simplify-sketch
Path smoothing for Sketch.
Installation
$ component install component/simplify-sketch
Example
var canvas = document.querySelector('canvas');
var Sketch = require('sketch');
var simplify = require('simplify-sketch');
var sketch = Sketch(canvas);
simplify(sketch, .8);
License
MIT