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

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.

主站蜘蛛池模板: 晋州市| 砀山县| 桂林市| 志丹县| 汽车| 周口市| 绍兴市| 平潭县| 西盟| 犍为县| 廊坊市| 东城区| 宜章县| 满洲里市| 黄山市| 三江| 漯河市| 廉江市| 延川县| 樟树市| 忻城县| 通许县| 璧山县| 龙川县| 祁东县| 湛江市| 天全县| 永兴县| 锦屏县| 宁都县| 漯河市| 中山市| 神池县| 苏尼特左旗| 榆林市| 耿马| 海晏县| 遂昌县| 慈利县| 遂溪县| 搜索|