canvas api
The canvas tag is an arbitrary HTML5 area that functions as a drawing surface. Unlike SVG, the Canvas API doesn’t create induvidual addressable elements; instead, it writes to the drawing area pixel by pixel using JavaScript.
canvas标签是充当绘图表面的任意HTML5区域。 与SVG不同,Canvas API不会创建单个可寻址元素。 而是使用JavaScript逐像素写入绘图区域。
While this can make drawing on the canvas more of a challenge for new coders, it also makes it very fast in execution: once you have a handle on the basics, fantastic interactive effects can be coded quite easily. This feature also makes the Canvas API an excellent medium for modern web apps, games, and advanced options like 3D and VR.
虽然这会使新编码员在画布上绘画更具挑战性,但也使它的执行速度非常快:一旦您掌握了基础知识,就可以轻松编码出色的交互效果。 此功能还使Canvas API成为了现代Web应用程序,游戏和3D和VR等高级选项的理想媒介。
This reading list is a little different from others, in that rather than exploring each aspect of the specification in detail, articles move quickly from explanation to practical examples, continued in the “Optional” section below.
该阅读列表与其他阅读列表略有不同,因为与其详细探讨本规范的各个方面,不如将文章从说明Swift转换为实际示例,请参见下面的“可选”部分。
Prerequisites: The JavaScript reading list to this point
先决条件 :至此的JavaScript阅读清单
Time: 3 hours
时间 :3小时
可选的 (Optional)
These articles are part of other reading lists (primarily Galleries) but each use <canvas>
in interesting ways:
这些文章是其他阅读列表(主要是Galleries )的一部分,但每个文章都以有趣的方式使用<canvas>
:
翻译自: https://thenewcode.com/1128/Web-Developer-Reading-List-The-Canvas-API
canvas api