Class

RemotePathNode.CurveTo

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public data class CurveTo(
        val x1: RemoteFloat,
        val y1: RemoteFloat,
        val x2: RemoteFloat,
        val y2: RemoteFloat,
        val x3: RemoteFloat,
        val y3: RemoteFloat,
    ) : RemotePathNode(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.