- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Makzan
- 132字
- 2021-07-16 14:10:02
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.
- Java語(yǔ)言程序設(shè)計(jì)
- Vue.js快速入門(mén)與深入實(shí)戰(zhàn)
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- Apex Design Patterns
- 網(wǎng)絡(luò)爬蟲(chóng)原理與實(shí)踐:基于C#語(yǔ)言
- Mastering Python Networking
- 數(shù)據(jù)結(jié)構(gòu)案例教程(C/C++版)
- Yii Project Blueprints
- Natural Language Processing with Java and LingPipe Cookbook
- 青少年學(xué)Python(第2冊(cè))
- Python預(yù)測(cè)分析實(shí)戰(zhàn)
- 數(shù)字媒體技術(shù)概論
- 一步一步學(xué)Spring Boot:微服務(wù)項(xiàng)目實(shí)戰(zhàn)(第2版)
- Windows 10 for Enterprise Administrators
- A/B 測(cè)試:創(chuàng)新始于試驗(yàn)