Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A jQuery plugin to handle all of the Canvas' cross browser difficulties and syntax uggliness.

tree: cdfb300f57

Fetching latest commit…

Cannot retrieve the latest commit at this time



jCanvas is a jQuery plugin to make dealing with the new <canvas\> tag as easy and painless as possible with a hint of jQuery like syntax.

Text support

Currently only Firefox supports text in a canvas element, with a different API for FF3.1+ and previous versions. jCanvas deals with this for you, with firefox rendering the text fine and all other browsers having a div positioned absolute above the canvas in the correct position.

Current Function List

  • $(canvas).drawShape(_point1_, _point2_, _pointN_...)
  • $(canvas).getContext()
  • $(canvas).fillText(textString, x, y)
  • $(canvas).rotate(r)
  • $(canvas).translate(x, y)
  • $(canvas).fillRect(x, y, w, h)
  • $(canvas).strokeRect(x, y, w, h)
  • $(canvas).clearRect(x, y, w, h)
Something went wrong with that request. Please try again.