25.6. Canvas: an HTML element for scripted drawingFirefox 1.5, Safari 1.3, Opera 9: Node Element HTMLElement Canvas25.6.1. Properties
25.6.2. Methods
25.6.3. DescriptionThe Canvas object represents an HTML canvas element. It has no behavior of its own but defines an API that supports scripted client-side drawing operations. You may specify the width and height directly on this object, but most of its functionality is available via the CanvasRenderingContext2D object. This is obtained by calling the getContext( ) method of the Canvas object and passing the literal string "2d" as the sole argument. The <canvas> tag was introduced in Safari 1.3 and, at this writing, is also supported in Firefox 1.5 and Opera 9. The <canvas> tag, and its API, can be simulated in IE with the ExplorerCanvas open source project at http://excanvas.sourceforge.net/. 25.6.4. See AlsoCanvasRenderingContext2D; Chapter 22 |