Class

PathNode.CurveTo

Draws a cubic Bézier curve from the current point to a new point using absolute coordinates.

Common
data class CurveTo(
        val x1: Float,
        val y1: Float,
        val x2: Float,
        val y2: Float,
        val x3: Float,
        val y3: Float,
    ) : PathNode(isCurve = true)

Draws a cubic Bézier curve from the current point to a new point using absolute coordinates. Corresponds to the C path data command.

Parameters

x1 The absolute x-coordinate of the first control point.
y1 The absolute y-coordinate of the first control point.
x2 The absolute x-coordinate of the second control point.
y2 The absolute y-coordinate of the second control point.
x3 The absolute x-coordinate of the curve's end point.
y3 The absolute y-coordinate of the curve's end point.