LineTo
- 网络画线
-
Then use the lineTo API to draw a line from the start point to the end point passed in to the lineTo call .
然后使用lineToAPI来从这个起始点到传递到这个lineTo调用中的端点之间绘制一条直线。
-
You can also use the lineTo ( x , y ) method to add a subpath to the current path , and position the pen at the specified position .
还可以使用lineTo(x,y)方法添加一个子路径到当前路径,并将画笔定位在一个指定的位置。
-
There is also a similar quadraticCurveTo ( cpx , cpy , x , y ) method that takes a coordinate and a curve control point coordinate , but otherwise behaves similarly to lineTo () .
还有一个类似的quadraticCurveTo(cpx,cpy,x,y)方法,该方法以一个坐标和一个曲线控制点坐标为参数,但是其行为类似于lineTo()。
-
After drawing both axes , you draw the gridlines along with their labels by evenly spacing them and then drawing the lines using the same combination of moveTo , lineTo , and stroke .
绘制水平和垂直轴线后,沿着它们的标签绘制网格线,方法是均匀间隔它们,然后使用相同的moveTo、lineTo和stroke组合来绘制这些直线。