官方文档原文:
The canvas should be thought of as a sheet of white paper with points on the sheet identified using Cartesian(X,Y) coordinates which by default have the (0,0) origin point at the lower left corner of the page.Furthermore the first coordinate x goes to the right and the second coordinate y goes up, by default.(画布应被视为一张白纸,上面有使用笛卡尔标识的点(X,Y) 坐标,默认情况下,该坐标在页面的左下角具有 (0,0) 原点。此外,默认情况下,第一个坐标 x 向右,第二个坐标 y 向上。)
因此,canvas的坐标系为: