Saturday, June 16, 2007

Hitting the canvas

I ran across the <canvas> tag today (while reading about iPhone's lack of support for 3rd party apps).

Basically, <canvas> allows you to do 2D drawing inside a browser. It's supported by Firefox, Safari and Opera.

Here's what Mozilla Development Center says about <canvas>:
<canvas> is a new HTML element which can be used to draw graphics using scripting (usually JavaScript). It can for instance be used to draw graphs, make photo compositions or do simple (and not so simple) animations.

<canvas> was first introduced by Apple for the Mac OS X Dashboard and later implemented in Safari. Gecko-based applications support this new element starting with Gecko 1.8 (i.e. Firefox 1.5 and later). Opera 9 supports <canvas> as well.

The <canvas> element is part of the WhatWG Web applications 1.0 specification also known as HTML 5.
Some <canvas> links:

No comments: