Sunday, September 27, 2009

Let’s Call It a Draw(ing Surface) - Dive Into HTML5

Let’s Call It a Draw(ing Surface) - Dive Into HTML5


A chapter from Mark Pilgrim's up and coming book on HTML5. The cool thing is that all of the images illustrating the canvas are actually done with a canvas.


HTML 5 defines the canvas element as “a resolution-dependent bitmap canvas which can be used for rendering graphs, game graphics, or other visual images on the fly.” A canvas is a rectangle in your page where you can use JavaScript to draw anything you want.
IE8*
IE7*
FX3.5
FX3.0
SAF4
SAF3
CHR3
OP10
✓
✓
✓
✓
✓
✓
✓
✓
* Internet Explorer support requires the third-party explorercanvas library.

No comments: