请问canvas的坐标轴变换有哪些?

26 阅读1分钟

"

  1. 平移:
context.translate(x, y);
  1. 旋转:
context.rotate(angle);
  1. 缩放:
context.scale(scaleX, scaleY);
  1. 反转:
context.transform(-1, 0, 0, 1, 0, 0);
  1. 设置变换矩阵:
context.setTransform(a, b, c, d, e, f);
```"