jsyg-canvas
v1.0.0
Published
Few canvas features for JSYG framework
Downloads
849
Maintainers
Readme
JSYG.Canvas
Few canvas features for JSYG framework
Demo
http://yannickbochatay.github.io/JSYG.Canvas/
Installation
npm install jsyg-canvas
Example with es6 bundler
import Canvas from "jsyg-canvas"
let canvas = new Canvas("#myCanvasElement")
canvas.resize(50,null) //keep ratio while resizing
canvas.toGrayScale()
canvas.exportTo("url").then( dataURL => window.open(dataURL) )