moveOrLineTo

fun moveOrLineTo(position: Vector2)(source)

Move the pen or draw a line to the given coordinates. The pen is moved without drawing when to prior moveTo instructions have been given.

Parameters

position

the coordinates to move the pen to


Move the pen or draw a line to the given coordinates. The pen is moved without drawing when to prior moveTo instructions have been given.

Parameters

x

the x-coordinate

y

the y-coordinate