stuartloxton / jcanvas
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit cdfb300f5763ecfcb126382d0ce32e1af6b4cdad
tree 43c2de9595ea697fd10d9c6587e0f8c9c0f3e03b
parent 9ed25645f728e18b546bd4fb7d8f47590a34717b
tree 43c2de9595ea697fd10d9c6587e0f8c9c0f3e03b
parent 9ed25645f728e18b546bd4fb7d8f47590a34717b
jcanvas /
| name | age | message | |
|---|---|---|---|
| |
README.textile | ||
| |
index.html | ||
| |
scripts/ |
README.textile
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)

