A lightweight JavaScript library for drawing facilities on HTML5 canvas.
Go to file
Luis Leiva f182258713 Include event type 2021-06-18 17:57:10 +02:00
dist Include event type 2021-06-18 17:57:10 +02:00
figs Version 2.0 🎉 2017-11-12 17:10:45 +01:00
src Include event type 2021-06-18 17:57:10 +02:00
.eslintrc.js Linted code 2019-05-26 20:32:41 +03:00
.gitignore Version 2.0 🎉 2017-11-12 17:10:45 +01:00
Gruntfile.js Added svg wrapper 2019-09-03 22:50:11 +03:00
LICENSE Version 2.0 🎉 2017-11-12 17:10:45 +01:00
README.md Updated readme 2017-12-17 23:38:21 +01:00
jsdoc.json Move source files to a dedicated dir 2019-05-26 22:12:24 +03:00
package.json Added grunt CLI dependency 2021-05-07 07:14:05 +02:00

README.md

jSketch

A lightweight JavaScript library for drawing facilities on an HTML5 canvas. Conveniently wrapped in a Sketchable class. Available also as a jQuery plugin.

Disclaimer: This library is mainly focused on free-form drawing, although it supports many of the native canvas methods. If you need a more complex solution try RaphäelJS or Fabric.js

Demos and documentation

g3 demo slm demo guessit demo mucaptcha demo smiley demo

TL;DR:

Vanilla JavaScript version

Add <script src="dist/sketchable.full.min.js"></script> to your page and just do:

var sketcher = new Sketchable('canvas');

jQuery version

Add <script src="dist/jquery.sketchable.full.min.js"></script> to your page and just do:

var $sketcher = $('canvas').sketchable();

That's it!

Want to know more? Go to demos and documentation.

License

This libray is released with the MIT license. The only requirement is that you keep my copyright notice intact when you repurpose, redistribute, or reuse this code.