# toPath

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | `@https://developer.android.com/reference/kotlin/androidx/compose/material3/ExperimentalMaterial3ExpressiveApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/graphics/shapes/RoundedPolygon.https://developer.android.com/reference/kotlin/androidx/compose/material3/toPath.composable#(androidx.graphics.shapes.RoundedPolygon).toPath(kotlin.Int)(startAngle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` that is remembered across compositions for this `https://developer.android.com/reference/kotlin/androidx/graphics/shapes/RoundedPolygon`. | Cmn |

## Functions

### RoundedPolygon.toPath

Cmn Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/MaterialShapes.kt+function:toPath)

```
@ExperimentalMaterial3ExpressiveApi
@Composable
fun RoundedPolygon.toPath(startAngle: Int = 0): Path
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` that is remembered across compositions for this `https://developer.android.com/reference/kotlin/androidx/graphics/shapes/RoundedPolygon`.

| Parameters |
|---|---|
| `startAngle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | the angle (in degrees) from which to begin drawing the generated path. By default, it is set to 0 degrees, meaning the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` begins drawing at the 3 o'clock position. The returned path is rotated by this angle around the `https://developer.android.com/reference/kotlin/androidx/graphics/shapes/RoundedPolygon`'s centroid (centerX, centerY). |