官术网_书友最值得收藏!

Introducing the HTML5 canvas element

W3C community states that the canvas element and the drawing functions are as follows:

A resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, or other visual images on the fly.

The canvas element contains context for drawing and the actual graphics and shapes are drawn by the JavaScript drawing API. There is one key difference between using canvas and the usual HTML DOM elements. Canvas is an immediate mode while DOM is a retained mode. We describe the DOM tree with elements and attributes, and the browser renders and tracks the objects for us. In Canvas, we have to manage all the attributes and rendering ourselves. The browser doesn't keep the information of what we draw. It only keeps the drawn pixel data.

主站蜘蛛池模板: 德惠市| 林芝县| 辽源市| 白玉县| 罗山县| 广水市| 孟津县| 绍兴市| 磴口县| 萨嘎县| 镇坪县| 固镇县| 太湖县| 神农架林区| 江津市| 长葛市| 贵定县| 东光县| 璧山县| 仪陇县| 平远县| 汝阳县| 元氏县| 固镇县| 夹江县| 喀什市| 娄烦县| 双桥区| 汉阴县| 文化| 南靖县| 雷州市| 兴和县| 扎囊县| 开江县| 富蕴县| 三门县| 咸阳市| 饶河县| 麻江县| 澳门|