Labs/Bespin/DesignDocs/Inline Documentation/Canvas: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
mNo edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Existing Documentation==
==Overview==
*[https://developer.mozilla.org/en/HTML/Canvas| Canvas Topics] (Mozilla Developer Center)
Canvas is an HTML element that allows you to generate images using javascript. This is in contrast to [http://en.wikipedia.org/wiki/SVG SVG] and [http://en.wikipedia.org/wiki/VML VML] which are systems for generating Vector primitives that are added to the DOM.
*[http://en.wikipedia.org/wiki/Canvas_%28HTML_element%29| Wikipedia]
 
*[http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#the-canvas-element| WhatWG Canvas Element]
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.
*[http://blog.nihilogic.dk/2009/02/html5-canvas-cheat-sheet.html| Nihologic Cheatsheet] ([http://www.nihilogic.dk/labs/canvas_sheet| HTML], [http://www.nihilogic.dk/labs/canvas_sheet/HTML5_Canvas_Cheat_Sheet.pdf| PDF], [http://www.nihilogic.dk/labs/canvas_sheet/HTML5_Canvas_Cheat_Sheet.png| .PNG])  
 
**[href="http://blog.nihilogic.dk/2009/02/html5-canvas-cheat-sheet.html| Blog Entry on it]
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 ([http://sourceforge.net/projects/iecanvas IECanvas] for example) but the performance is poor and doesn't support support certain features like [http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-getimagedata getImageData]. Currently there is no strong 'goto' Documentation for Canvas. We would like to fix this with Bespin's inline documentation.
**[href="http://blog.nihilogic.dk/2009/05/canvas-cheat-sheet-update.html| Blog 'Update' Entry on it]
 
*[href="http://philip.html5.org/tests/canvas/suite/tests/results.html| Browser Coverage]
The current plan is to experiment with building a Canvas documentation system that has the following features:
==Tutorials==
*Includes cross referenced:
*[http://billmill.org/static/canvastutorial/coda.html| Canvas Tutorial]
**API Reference
**Tutorials
**Example Code
**Advanced Topics
 
==Existing==
===Documentation===
*[https://developer.mozilla.org/en/HTML/Canvas Canvas Topics] (Mozilla Developer Center)
*[http://en.wikipedia.org/wiki/Canvas_(HTML_element) Wikipedia]
*[http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#the-canvas-element WhatWG Canvas Element]
*[http://blog.nihilogic.dk/2009/02/html5-canvas-cheat-sheet.html Nihologic Cheatsheet] ([http://www.nihilogic.dk/labs/canvas_sheet/HTML5_Canvas_Cheat_Sheet.htm HTML], [http://www.nihilogic.dk/labs/canvas_sheet/HTML5_Canvas_Cheat_Sheet.pdf PDF], [http://www.nihilogic.dk/labs/canvas_sheet/HTML5_Canvas_Cheat_Sheet.png .PNG])  
**[http://blog.nihilogic.dk/2009/02/html5-canvas-cheat-sheet.html Blog Entry on it]
**[http://blog.nihilogic.dk/2009/05/canvas-cheat-sheet-update.html Blog 'Update' Entry on it]
*[http://philip.html5.org/tests/canvas/suite/tests/results.html Browser Coverage]
 
===Tutorials===
*[http://billmill.org/static/canvastutorial/coda.html Canvas Tutorial]
===Demos===
*Galleries
**[http://www.chromeexperiments.com/ Chrome Experiments]
**[http://www.nihilogic.dk/labs/ Nihilogic Labs]
**[http://www.benjoffe.com/code/ Ben Joffe]
**[http://wiioperasdk.com/indexfps.php Wii Opera SDK] (Interactive Raycasting demo index)
***[http://wiioperasdk.com/raytrace/raytrace.html Ray tracer]
***[http://wiioperasdk.com/ripple.html Ripple]
***[http://wiioperasdk.com/shooting.html Shooting]
***[http://wiioperasdk.com/shadow.html Shadow]
***[http://wiioperasdk.com/texturemap.html Texturemap]
***[http://wiioperasdk.com/wall.html Wall]
***[http://wiioperasdk.com/sidescroller.html Sidescroller]
====See also====
*Processingjs: [http://processingjs.org/exhibition Exhibition], [http://processingjs.org/learning/basic Basic Demos], [http://processingjs.org/learning/topic Topic Demos], and [http://processingjs.org/learning/custom Custom Demos]
*Algorithmic Ink: [http://azarask.in/projects/algorithm-ink/ Site], [http://www.azarask.in/blog/post/contextfreejs-algorithm-ink-making-art-with-javascript/ Blog Intro]

Latest revision as of 23:51, 22 May 2009

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