You also create the canvas context object, as this is the object you use to do all of the actual drawing.
您还创建了画布上下文对象,因为这是用于进行所有实际画图的对象。
You define the fixed size of the canvas in the element itself, and then typically you do the actual drawing from a script that uses the canvas API to create visual objects on the canvas.
首先在元素本身中定义画布的固定大小,然后利用使用 canvasAPI 在画布上创建可视化对象的脚本来实际绘画。
These rules however don't affect the actual drawing on the canvas.
然而这些样式并不会对canvas实际生成的图像产生什么影响。
The actual drawing is done using the same functions we have seen earlier.
实际的绘画使用我们已经在前面看过的函数来完成。
The actual drawing is done using the same functions we have seen earlier.
实际的绘画使用我们已经在前面看过的函数来完成。
应用推荐