jsyg-canvas

Few canvas features for JSYG framework

Usage no npm install needed!

<script type="module">
  import jsygCanvas from 'https://cdn.skypack.dev/jsyg-canvas';
</script>

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) )