Labs/Bespin/DesignDocs/Inline Documentation/Canvas

From MozillaWiki
Jump to: navigation, search

Overview

Canvas is an HTML element that allows you to generate images using javascript. This is in contrast to SVG and VML which are systems for generating Vector primitives that are added to the DOM.

In contrast Canvas elements act just like <img> elements in that they are represented by only one DOM element, and are comprised of a 2D grid of pixels.

Currently the Canvas element is not fully support in all mainstream browsers, the IE series of browser has no native support for it. Some emulation of canvas is possible (IECanvas for example) but the performance is poor and doesn't support support certain features like getImageData. Currently there is no strong 'goto' Documentation for Canvas. We would like to fix this with Bespin's inline documentation.

The current plan is to experiment with building a Canvas documentation system that has the following features:

  • Includes cross referenced:
    • API Reference
    • Tutorials
    • Example Code
    • Advanced Topics

Existing

Documentation

Tutorials

Demos

See also