-  Creating and Sharing the Top jQuery Plugins.

WEBSANOVA PLUGINS

wTooltip
wColorPicker
wPaint
wScratchPad
wHumanMsg
wJSNova
Mousestop
Boilerplate
jQuery Selectors Lib
JQuery Utils Lib
Blocknik

FIND A PLUGIN

slideshows
lightboxes
tooltips
color pickers
star ratings
select boxes

CAN'T FIND A PLUGIN

contact us

Websanova Paint

Websanova jQuery Paint PluginA little jQuery plugin paint app that allows you to draw an image using some basic tools providing ability to load and save the images drawn. This is based on HTML5 canvas and will require a browser with support for canvas to run.
demodownloadreport a bug
Usage:
options •
$("#container").wPaint([options]);
Setters / Getters:
option/value •
Set or get any of the options.
var wp = $("#container").wPaint([options]);
var mode = wp.wPaint("mode");
wp.wPaint("mode", "Ellipse");
Options:
mode •
Specify the default mode that paint app will start in.
$("#container").wPaint({mode: "Rectangle"});
default: "Pencil"
 values: "Rectangle", "Ellipse", "Line", "Pencil", "Eraser"
lineWidthMin •
Set the minimum line width that can be set.
$("#container").wPaint({lineWidthMin: 0});
default: 0
 values: <integer>
lineWidthMax •
Set the maximum line width that can be set.
$("#container").wPaint({lineWidthMax: 20});
default: 10
 values: <integer>
lineWidth •
Set the default line width.
$("#container").wPaint(lineWidth: 10);
default: 2
 values: <integer>
fillStyle •
Set the default color to use for fill style.
$("#container").wPaint(fillStyle: "#336699");
default: "#FFFFFF"
 values: <hex color>
strokeStyle •
Set the default color to use for stroke style.
$("#container").wPaint(strokeStyle: "#446688");
default: "#FFFF00"
 values: <hex color>
image •
Set the initial base64 encoded image to load into the canvas.
$("#container").wPaint({image: "data:image/png;base64,<image data>"});
default: null
 values: data:image/png;base64,<image data>
drawDown •
Function to execute when drawing event begins.
$("#container").wPaint({drawDown: function(e, element){}});
default: null
 values: function(e, element){}
drawMove •
Function to execute during drawing.
$("#container").wPaint({drawMove: function(e, element){}});
default: null
 values: function(e, element){}
drawUp •
Funciton to execute when drawing event completes.
$("#container").wPaint({drawUp: function(e, element){}});
default: null
 values: function(e, element){}