# PathBuilder

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/vector/PathBuilder.kt+class:androidx.compose.ui.graphics.vector.PathBuilder) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  class PathBuilder
  ```

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` provides a fluent API to creates a list of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode`, used to describe a path.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#PathBuilder()()` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)( horizontalEllipseRadius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, verticalEllipseRadius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, theta: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, isMoreThanHalf: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, isPositiveArc: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Add an elliptical arc from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`) by adding `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ArcTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)( a: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, b: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, theta: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, isMoreThanHalf: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, isPositiveArc: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Add an elliptical arc by adding `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeArcTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#close()()` Closes the current contour by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.Close` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, x3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a cubic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), approaching the control points (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`) and (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dx2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dx3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Add a cubic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#horizontalLineTo(kotlin.Float)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a line from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#horizontalLineTo(kotlin.Float)`, `oy`), where `oy` is the y coordinate of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.HorizontalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#horizontalLineToRelative(kotlin.Float)(dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a line from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#horizontalLineToRelative(kotlin.Float)` `+ ox`, `oy`), where `ox` and `oy` are the x and y coordinates of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeHorizontalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineTo(kotlin.Float,kotlin.Float)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a line from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineTo(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineTo(kotlin.Float,kotlin.Float)`) by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.LineTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineToRelative(kotlin.Float,kotlin.Float)(dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a line from the last point to the offset (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineToRelative(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineToRelative(kotlin.Float,kotlin.Float)`) relative to the last point by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeLineTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Start a new contour at position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)`) by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.MoveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveToRelative(kotlin.Float,kotlin.Float)(dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Start a new contour at the offset (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveToRelative(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveToRelative(kotlin.Float,kotlin.Float)`) relative to the last path position by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeMoveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a quadratic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), approaching the control point (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.QuadTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dx2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a quadratic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeQuadTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a cubic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dx2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a cubic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveCurveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveQuadTo(kotlin.Float,kotlin.Float)(x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a quadratic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveQuadTo(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveQuadTo(kotlin.Float,kotlin.Float)`). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveQuadToRelative(kotlin.Float,kotlin.Float)(dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a quadratic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveQuadTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#verticalLineTo(kotlin.Float)(y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a line from the last point to the position (`ox`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#verticalLineTo(kotlin.Float)`), where `ox` is the x coordinate of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.VerticalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#verticalLineToRelative(kotlin.Float)(dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a line from the last point to the position (`ox`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#verticalLineToRelative(kotlin.Float)` `+ oy`), where `ox` and `oy` are the x and y coordinates of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeVerticalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()` Returns the list of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` currently held in this builder. | Cmn |

## Public constructors

### PathBuilder

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
PathBuilder()
```

## Public functions

### arcTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun arcTo(
    horizontalEllipseRadius: Float,
    verticalEllipseRadius: Float,
    theta: Float,
    isMoreThanHalf: Boolean,
    isPositiveArc: Boolean,
    x1: Float,
    y1: Float
): PathBuilder
```

Add an elliptical arc from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`) by adding `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ArcTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the arc is set to (0, 0).

The ellipse is defined by 3 parameters:

- `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` to define the size of the ellipse

- `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` to define the orientation (as an X-axis rotation) of the ellipse

In most situations, there are four arc candidates that can be drawn from the origin to (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`). Which of the arcs is used is influenced by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`.

When `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` is set to `true`, the added arc will be chosen amongst the two candidates that represent an arc sweep greater than or equal to 180 degrees.

When `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` is set to `true`, the added arc will be chosen amongst the two candidates with a positive-angle direction (counter-clockwise)

| Parameters |
|---|---|
| `horizontalEllipseRadius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The horizontal radius of the ellipse |
| `verticalEllipseRadius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The vertical radius of the ellipse |
| `theta: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The rotation of the ellipse around the X-axis, in degrees |
| `isMoreThanHalf: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Defines whether to use an arc candidate with a sweep greater than or equal to 180 degrees |
| `isPositiveArc: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Defines whether to use an arc candidate that's counter-clockwise or not |
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the end point of the arc |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the end point of the arc |

### arcToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun arcToRelative(
    a: Float,
    b: Float,
    theta: Float,
    isMoreThanHalf: Boolean,
    isPositiveArc: Boolean,
    dx1: Float,
    dy1: Float
): PathBuilder
```

Add an elliptical arc by adding `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeArcTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the arc is set to (0, 0). The arc Bézier end point is defined by an offset relative to the last point.

The ellipse is defined by 3 parameters:

- `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` to define the size of the ellipse

- `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` to define the orientation (as an X-axis rotation) of the ellipse

In most situations, there are four arc candidates that can be drawn from the origin to the end point. Which of the arcs is used is influenced by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)`.

When `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` is set to `true`, the added arc will be chosen amongst the two candidates that represent an arc sweep greater than or equal to 180 degrees.

When `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#arcToRelative(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.Float)` is set to `true`, the added arc will be chosen amongst the two candidates with a positive-angle direction (counter-clockwise)

| Parameters |
|---|---|
| `a: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The horizontal radius of the ellipse |
| `b: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The vertical radius of the ellipse |
| `theta: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The rotation of the ellipse around the X-axis, in degrees |
| `isMoreThanHalf: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Defines whether to use an arc candidate with a sweep greater than or equal to 180 degrees |
| `isPositiveArc: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Defines whether to use an arc candidate that's counter-clockwise or not |
| `dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the end point of the arc, relative to the last path position |
| `dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the end point of the arc, relative to the last path position |

### close

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun close(): PathBuilder
```

Closes the current contour by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.Close` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`.

### curveTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun curveTo(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float): PathBuilder
```

Add a cubic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), approaching the control points (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`) and (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#curveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0).

| Parameters |
|---|---|
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the first control point of the cubic curve |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the first control point of the cubic curve |
| `x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the second control point of the cubic curve |
| `y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the second control point of the cubic curve |
| `x3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the end point of the cubic curve |
| `y3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the end point of the cubic curve |

### curveToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun curveToRelative(
    dx1: Float,
    dy1: Float,
    dx2: Float,
    dy2: Float,
    dx3: Float,
    dy3: Float
): PathBuilder
```

Add a cubic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0). The cubic Bézier control and end points are defined by offsets relative to the last point.

| Parameters |
|---|---|
| `dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the first control point of the cubic curve, relative to the last path position |
| `dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the first control point of the cubic curve, relative to the last path position |
| `dx2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the second control point of the cubic curve, relative to the last path position |
| `dy2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the second control point of the cubic curve, relative to the last path position |
| `dx3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the end point of the cubic curve, relative to the last path position |
| `dy3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the end point of the cubic curve, relative to the last path position |

### horizontalLineTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun horizontalLineTo(x: Float): PathBuilder
```

Add a line from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#horizontalLineTo(kotlin.Float)`, `oy`), where `oy` is the y coordinate of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.HorizontalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the line is set to (0, 0).

| Parameters |
|---|---|
| `x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the end of the line |

### horizontalLineToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun horizontalLineToRelative(dx: Float): PathBuilder
```

Add a line from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#horizontalLineToRelative(kotlin.Float)` `+ ox`, `oy`), where `ox` and `oy` are the x and y coordinates of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeHorizontalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the line is set to (0, 0).

| Parameters |
|---|---|
| `dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the end of the line, relative to the last path position |

### lineTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lineTo(x: Float, y: Float): PathBuilder
```

Add a line from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineTo(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineTo(kotlin.Float,kotlin.Float)`) by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.LineTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the line is set to (0, 0).

| Parameters |
|---|---|
| `x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the end of the line |
| `y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the end of the line |

### lineToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lineToRelative(dx: Float, dy: Float): PathBuilder
```

Add a line from the last point to the offset (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineToRelative(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#lineToRelative(kotlin.Float,kotlin.Float)`) relative to the last point by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeLineTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the line is set to (0, 0).

| Parameters |
|---|---|
| `dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the end of the line, relative to the last path position |
| `dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the end of the line, relative to the last path position |

### moveTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun moveTo(x: Float, y: Float): PathBuilder
```

Start a new contour at position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)`) by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.MoveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`.

| Parameters |
|---|---|
| `x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the start of the new contour |
| `y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the start of the new contour |

### moveToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun moveToRelative(dx: Float, dy: Float): PathBuilder
```

Start a new contour at the offset (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveToRelative(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveToRelative(kotlin.Float,kotlin.Float)`) relative to the last path position by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeMoveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`.

| Parameters |
|---|---|
| `dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the start of the new contour, relative to the last path position |
| `dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the start of the new contour, relative to the last path position |

### quadTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun quadTo(x1: Float, y1: Float, x2: Float, y2: Float): PathBuilder
```

Add a quadratic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), approaching the control point (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#quadTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`), by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.QuadTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0).

| Parameters |
|---|---|
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the control point of the quadratic curve |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the control point of the quadratic curve |
| `x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the end point of the quadratic curve |
| `y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the end point of the quadratic curve |

### quadToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun quadToRelative(dx1: Float, dy1: Float, dx2: Float, dy2: Float): PathBuilder
```

Add a quadratic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeQuadTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0). The control point and end point of the curve are defined by offsets relative to the last point.

| Parameters |
|---|---|
| `dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the control point of the quadratic curve, relative to the last path position |
| `dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the control point of the quadratic curve, relative to the last path position |
| `dx2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the end point of the quadratic curve, relative to the last path position |
| `dy2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the end point of the quadratic curve, relative to the last path position |

### reflectiveCurveTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun reflectiveCurveTo(x1: Float, y1: Float, x2: Float, y2: Float): PathBuilder
```

Add a cubic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`). The first control point is the reflection of the second control point of the previous command. If there is no previous command or the previous command is not a cubic Bézier, the first control point is set to the last path position. The second control point is defined by (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`). Calling this method adds a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0).

| Parameters |
|---|---|
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the second control point of the cubic curve |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the second control point of the cubic curve |
| `x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the end point of the cubic curve |
| `y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the end point of the cubic curve |

### reflectiveCurveToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun reflectiveCurveToRelative(dx1: Float, dy1: Float, dx2: Float, dy2: Float): PathBuilder
```

Add a cubic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveCurveTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0). The cubic Bézier second control point and end points are defined by offsets relative to the last point. The reflective nature of the curve is described in `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`.

| Parameters |
|---|---|
| `dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the second control point of the cubic curve, relative to the last path position |
| `dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the second control point of the cubic curve, relative to the last path position |
| `dx2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the end point of the cubic curve, relative to the last path position |
| `dy2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the end point of the cubic curve, relative to the last path position |

### reflectiveQuadTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun reflectiveQuadTo(x1: Float, y1: Float): PathBuilder
```

Add a quadratic Bézier from the last point to the position (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveQuadTo(kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveQuadTo(kotlin.Float,kotlin.Float)`). The control point is the reflection of the control point of the previous command. If there is no previous command or the previous command is not a quadratic Bézier, the control point is set to the last path position. Calling this method adds a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveQuadTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0).

| Parameters |
|---|---|
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x coordinate of the end point of the quadratic curve |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the end point of the quadratic curve |

### reflectiveQuadToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun reflectiveQuadToRelative(dx1: Float, dy1: Float): PathBuilder
```

Add a quadratic Bézier by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveQuadTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the curve is set to (0, 0). The quadratic Bézier end point is defined by an offset relative to the last point. The reflective nature of the curve is described in `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#reflectiveQuadTo(kotlin.Float,kotlin.Float)`.

| Parameters |
|---|---|
| `dx1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x offset of the end point of the quadratic curve, relative to the last path position |
| `dy1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the end point of the quadratic curve, relative to the last path position |

### verticalLineTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun verticalLineTo(y: Float): PathBuilder
```

Add a line from the last point to the position (`ox`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#verticalLineTo(kotlin.Float)`), where `ox` is the x coordinate of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.VerticalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the line is set to (0, 0).

| Parameters |
|---|---|
| `y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y coordinate of the end of the line |

### verticalLineToRelative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun verticalLineToRelative(dy: Float): PathBuilder
```

Add a line from the last point to the position (`ox`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#verticalLineToRelative(kotlin.Float)` `+ oy`), where `ox` and `oy` are the x and y coordinates of the last point, by adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeVerticalTo` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#nodes()`. If no contour has been created by calling `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder#moveTo(kotlin.Float,kotlin.Float)` first, the origin of the line is set to (0, 0).

| Parameters |
|---|---|
| `dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y offset of the end of the line, relative to the last path position |

## Public properties

### nodes

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val nodes: List<PathNode>
```

Returns the list of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` currently held in this builder.