摘要: 一、变形 1.1 translate translate(x, y) ​ 用来移动 canvas 的原点到指定的位置 ​ translate方法接受两个参数。x 是左右偏移量,y 是上下偏移量,如右图所示。 在做变形之前先保存状态是一个良好的习惯。大多数情况下,调用 restore 方法比手动恢复原 阅读全文
posted @ 2018-01-25 22:50 半指温柔乐 阅读(349) 评论(0) 推荐(0) 编辑