PathNode.CurveTo


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

Summary

Public constructors

CurveTo(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float)
Cmn

Public properties

Float

The absolute x-coordinate of the first control point.

Cmn
Float

The absolute x-coordinate of the second control point.

Cmn
Float

The absolute x-coordinate of the curve's end point.

Cmn
Float

The absolute y-coordinate of the first control point.

Cmn
Float

The absolute y-coordinate of the second control point.

Cmn
Float

The absolute y-coordinate of the curve's end point.

Cmn

Inherited properties

From androidx.compose.ui.graphics.vector.PathNode
Boolean

true if this command is a cubic Bézier curve, false otherwise.

Cmn
Boolean

true if this command is a quadratic Bézier curve, false otherwise.

Cmn

Public constructors

CurveTo

CurveTo(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float)
Parameters
x1: Float

The absolute x-coordinate of the first control point.

y1: Float

The absolute y-coordinate of the first control point.

x2: Float

The absolute x-coordinate of the second control point.

y2: Float

The absolute y-coordinate of the second control point.

x3: Float

The absolute x-coordinate of the curve's end point.

y3: Float

The absolute y-coordinate of the curve's end point.

Public properties

x1

val x1Float

The absolute x-coordinate of the first control point.

x2

val x2Float

The absolute x-coordinate of the second control point.

x3

val x3Float

The absolute x-coordinate of the curve's end point.

y1

val y1Float

The absolute y-coordinate of the first control point.

y2

val y2Float

The absolute y-coordinate of the second control point.

y3

val y3Float

The absolute y-coordinate of the curve's end point.