@sez-ai/responsive-sketchpad
v0.2.5
Published
A completely responsive sketchpad based on HTML5 canvas
Downloads
5
Readme
Responsive-Sketchpad
A completely responsive, HTML5 canvas sketchpad for use on desktop and mobile browsers
No longer dependent on jQuery!
Getting Started
Installation
npm i @sez-ai/responsive-sketchpad
Example
Create a sketchpad
html:
<body>
<div id="sketchpad"></div>
</body>
javascript:
var Sketchpad = require('responsive-sketchpad');
var el = document.getElementById('sketchpad');
var pad = new Sketchpad(el);
pad.setLineColor('#4CAF50');
Running tests
npm install
npm test