# toShape

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `@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/toShape.composable#(androidx.graphics.shapes.RoundedPolygon).toShape(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/Shape` that is remembered across compositions for this `https://developer.android.com/reference/kotlin/androidx/graphics/shapes/RoundedPolygon`. | Cmn |

## Functions

### RoundedPolygon.toShape

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:toShape)

```
@ExperimentalMaterial3ExpressiveApi
@Composable
fun RoundedPolygon.toShape(startAngle: Int = 0): Shape
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` 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 shape's path. By default, it is set to 0 degrees, meaning the shape's 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). |