W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: Use Cases for The <canvas> Element

From: James Graham <jg307@cam.ac.uk>
Date: Mon, 30 Jul 2007 21:43:31 +0100
Message-ID: <46AE4D73.9000005@cam.ac.uk>
To: Laura Carlson <laura.lee.carlson@gmail.com>
Cc: public-html@w3.org, Sander Tekelenburg <st@isoc.nl>, Karl Dubost <karl@w3.org>

Laura Carlson wrote:
> I began adding info from this canvas element thread into the wiki.
> http://esw.w3.org/topic/HTML/AddedElementCanvas
> If you find anything that needs changing, please revise. Or if you
> have further info please add it.


Perhaps this would work well as a multiple solution pro/con analysis 
like other proposals for the spec. Something with a structure like (I'm 
sure others can fill in many of the gaps caused by my ignorance):

Simple script-driven drawing for rendering dynamic bitmap graphics on 
the fly.

Use Cases:
Charts - Plotkit + etc.
Simple games -
Mathematics -
Decorative effects -

Proposed solutions:

<canvas> element + API
Simple mapping on to platform graphics APIs - easy to implement
Mostly interoperable implementations for 3/4 major  browsers + scripted 
implementation for IE
Element allows for rich fallback content
Large test suite available
Semantically element is close to <img> but has a different name

<img> element + drawing API
Architecturally cleaner than <canvas>
No existing implementations
Duplicates <canvas> functionality that is unlikely to be removed from UAs
Harder to implement? (this was claimed somewhere I think)
Poorer fallback story than <canvas>

Provides for wide range of graphics needs in single spec
Test suite available [2]
Large and complex to implement; existing browser implementations do not 
cover all the features needed to replace <canvas>
Optimized primarily for vector graphics; does not cover exactly the same 
use cases
Works best in XML content

[1] http://canvex.lazyilluminati.com/tests/tests/
"Mixed up signals
Bullet train
People snuffed out in the brutal rain"
--Conner Oberst
Received on Monday, 30 July 2007 20:43:15 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:24 UTC