Class

PathNode.RelativeReflectiveCurveTo

Draws a smooth cubic Bézier curve using relative coordinates.

Common
data class RelativeReflectiveCurveTo(
        val dx1: Float,
        val dy1: Float,
        val dx2: Float,
        val dy2: Float,
    ) : PathNode(isCurve = true)

Draws a smooth cubic Bézier curve using relative coordinates. This command ensures a seamless connection to a previous curve by inferring its first control point as a reflection of the last control point of the preceding command. Corresponds to the s path data command.

Parameters

dx1 The relative x-offset of the second control point.
dy1 The relative y-offset of the second control point.
dx2 The relative x-offset of the curve's end point.
dy2 The relative y-offset of the curve's end point.