Skip to content

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

Notifications You must be signed in to change notification settings

stuartloxton/jcanvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

jCanvas

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)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published