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

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.

主站蜘蛛池模板: 桐梓县| 丰台区| 股票| 桃江县| 阿尔山市| 志丹县| 宁都县| 澄迈县| 筠连县| 榆林市| 冕宁县| 岳普湖县| 阿荣旗| 阿拉善右旗| 金秀| 紫阳县| 日喀则市| 达日县| 义乌市| 通化市| 永年县| 习水县| 卢湾区| 芜湖市| 宁晋县| 建始县| 西乌珠穆沁旗| 霍州市| 高陵县| 平遥县| 邛崃市| 山阴县| 封开县| 德格县| 乌拉特中旗| 崇阳县| 黄大仙区| 施甸县| 黄大仙区| 东阳市| 新乡县|