Class

PathNode.CurveTo

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

Source set: Common
public data class CurveTo(
        public val x1: Float,
        public val y1: Float,
        public val x2: Float,
        public val y2: Float,
        public val x3: Float,
        public 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.
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: