🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

PathNode.ReflectiveCurveTo

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

Source set: Common
public data class ReflectiveCurveTo(
        public val x1: Float,
        public val y1: Float,
        public val x2: Float,
        public val y2: Float,
    ) : PathNode(isCurve = true)

Draws a smooth cubic Bézier curve using absolute 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

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

Content updated: