Skip to content

easy canvas drawing UI and tool with build with oCanvas, color picker, and easy slider.

Notifications You must be signed in to change notification settings

fraywing/drawwn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drawwn

(draw so easy, you'll yawn)

Import images, draw and modify shapes, arrows, lines and export your final image with drawwn. The jQuery javascript canvas editing/image import & export tool.

compatible w/IE9, FF10+, Chrome9+

TO USE:

Simple add (or dynamically load) the drawwn.js development file, or the drawwn.min.js minified file into your page; along with the drawwn.css file. Load jQuery.

initialize the constructor with:

    var drawwn = $('#yourElement').drawwn({
    "tools" : {  //add or remove tools
        "circle" : true,
        "arrow" : true,
        "line" : true,
        "text" : true,
        "selector" : true
    },
    "zoom" : true, //doesn't work
    "colors" : true, 
    "loadImage" : true,
    "exportImage" : function(image){ //optional exported image callback function, gets the image as base64
       var img = "<img src='"+image+"' />";
        $('body').append(img);
    },
    "background" : "#d3d3d3", //background for canvas
    "height" : "700px", //height
    "width" : "1000px" //width
    });

EXTRA:

load your image with:

   drawwn.waitTillReady(function(o){ //use to wait until ready to load an image into drawwn
      o.loadImage("/js/images/backFlips.png");
    });

About

easy canvas drawing UI and tool with build with oCanvas, color picker, and easy slider.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published