- 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.
- Docker and Kubernetes for Java Developers
- 零基礎搭建量化投資系統:以Python為工具
- Redis Applied Design Patterns
- 自己動手寫Java虛擬機
- Vue.js 3.0源碼解析(微課視頻版)
- 新編Premiere Pro CC從入門到精通
- PHP 編程從入門到實踐
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- uni-app跨平臺開發與應用從入門到實踐
- Mastering OpenStack
- Google Adsense優化實戰
- Clojure for Finance
- 企業級Java現代化:寫給開發者的云原生簡明指南
- Java網絡編程實用精解
- Roslyn Cookbook