Set canvas origin to the lower-left corner

后端 未结 3 966
执念已碎
执念已碎 2021-02-05 23:40

Is there a way to set the origin to lower-left of the canvas? I tried scaling by −1 but after that everything is upside down. I need to make something like a coordinate sy

3条回答
  •  孤街浪徒
    2021-02-06 00:05

    One of the easiest and correct ways is to use ctx.transform() method documentation is here

提交回复
热议问题