---
title: "toPath"
description: "Returns a [Path] that is remembered across compositions for this [RoundedPolygon]."
type: "composable"
---

<div class='type'>Composable Function</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


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


Returns a `Path` that is remembered across compositions for this `RoundedPolygon`.

#### Parameters

| | |
| --- | --- |
| startAngle | the angle (in degrees) from which to begin drawing the generated path. By default, it is set to 0 degrees, meaning the `Path` begins drawing at the 3 o'clock position. The returned path is rotated by this angle around the `RoundedPolygon`'s centroid (centerX, centerY). |





