canvas
的 translate
, rotate
, scale
是对坐标轴的处理,
以 translate
为例
canvas.translate(100,100)
会把坐标轴向 x 轴方向和 y 轴方向移动 100 个像素点。
translate
后面的绘制会以以前的 (100,100) 为坐标原点绘制。
canvas
的 translate
, rotate
, scale
是对坐标轴的处理,
以 translate
为例
canvas.translate(100,100)
会把坐标轴向 x 轴方向和 y 轴方向移动 100 个像素点。
translate
后面的绘制会以以前的 (100,100) 为坐标原点绘制。