Class

PathNode.RelativeReflectiveCurveTo

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

Source set: Common
public data class RelativeReflectiveCurveTo(
        public val dx1: Float,
        public val dy1: Float,
        public val dx2: Float,
        public 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: