lineTo

open fun lineTo(x: Float, y: Float)

Add a line to the ShapePath.

Parameters

x

the x to which the line should be drawn.

y

the y to which the line should be drawn.


open fun lineTo(x1: Float, y1: Float, x2: Float, y2: Float)

Add two connected segments to the ShapePath. This is equivalent to call lineTo twice. If an inner corner is formed, this can also draw the compat shadow without overlapping.