WeChat applet uses moveTo to move the path to a specified point in the canvas without creating a line
moveTo
Definition
Move the path to the specified point in the canvas without creating a line.
Tip: Use the stroke()
method to draw lines
Parameters
Example
const ctx = wx.createCanvasContext('myCanvas') ctx.moveTo(10, 10) ctx.lineTo(100, 10) ctx.moveTo(10, 50) ctx.lineTo(100, 50) ctx.stroke() ctx.draw()