Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Draw! jQuery drawing plugin.


Average rating
(4 votes)

This plugin was created after noticing Walter Zorn's javascript for drawing shapes on screen with div's.

I've also looked into the drawlibrary plugin, but it has a little too much overhead. Drawlibrary does use the same algorithms as Walter Zorns work as well, but relies on svg files when using Microsoft I.E. This plugin does not.

Here is some example code:

$("#myCanvas").drawRect(10, 10, 20, 20, {color:'blue', alpha: .5});
$("#myCanvas").drawPolygon([100, 100, 90, 30], [20, 30, 40, 60], {color:'#00FF00', alpha: .9});
$("#myCanvas").drawEllipse(100, 200, 40, 40, {color:'orange', stroke: 10});
$("#myCanvas").fillArc(50, 200, 40, 40, 90.0, 180.0, {color:'#336699', alpha: .2});
$("#myCanvas").fillPolygon([150, 300, 90, 30], [20, 30, 40, 60], {color:'yellow', alpha: 1});

My canvas is an empty div tag with id="myCanvas"

Releases

Official releasesDateSizeLinksStatus
1.2.02008-Apr-1323.08 KBRecommended for 1.0.xThis is currently the recommended release for 1.0.x.
1.3.02008-Oct-1623.76 KBRecommended for 1.2.xThis is currently the recommended release for 1.2.x.