# androidx.compose.foundation.shape

Common/All

## Interfaces

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | Defines size of a corner in pixels. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeScope` | Builds `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry` for a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` at layout resolution. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeTransformScope` | Transforms a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`'s geometry inside `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape#transform(kotlin.Function1)`. | Cmn |

## Classes

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | A shape describing the rectangle with cut corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | A shape describing the rectangle with rounded corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape` | Base class for `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape`s defined by four `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize`s. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerRounding` | Defines the radius and smoothness of rounding at a polygon vertex. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | A shape describing the rectangle with cut corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/GenericShape` | Creates `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` defined by applying the provided `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/GenericShape#(kotlin.Function3)` on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | Defines a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` built from rounded polygon geometry. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry` | Defines a polygon's `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry#vertices()`, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry#center()`, and corner rounding. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | A shape describing the rectangle with rounded corners. | Cmn |

## Top-level functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.foundation.shape.CornerSize)(corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Int)(percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Int)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.ui.unit.Dp)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Float)(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Float)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( topLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, topRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( topLeft: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, topRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomLeft: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in float. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( topLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, topRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.foundation.shape.CornerSize)(corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Int)(percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Int)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.ui.unit.Dp)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Float)(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Float)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( topLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, topRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomRight: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomLeft: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( topLeft: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, topRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomLeft: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in pixels. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( topLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, topRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(kotlin.Int)(percent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(kotlin.Int)` with provided size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(androidx.compose.ui.unit.Dp)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(androidx.compose.ui.unit.Dp)` with provided size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(kotlin.Float)(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(kotlin.Float)` with provided size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.foundation.shape.CornerSize)(corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Int)(percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Int)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.ui.unit.Dp)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Float)(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Float)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)(topStart: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, topEnd: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomEnd: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomStart: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( topStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, topEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in float. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( topStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, topEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/annotation/RememberInComposition https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)( start: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape, end: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape, progress: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` that morphs between `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)` as `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)` moves from `0f` to `1f`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/annotation/RememberInComposition https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#PolygonShape(kotlin.Function1)(builder: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeScope.() -> https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry)` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#PolygonShape(kotlin.Function1)` from geometry returned by `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#PolygonShape(kotlin.Function1)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.foundation.shape.CornerSize)(corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Int)(percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Int)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.ui.unit.Dp)(size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Float)(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Float)` with the same size applied for all four corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)(topStart: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, topEnd: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomEnd: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottomStart: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( topStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, topEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottomStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in pixels. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( topStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, topEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottomStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side. | Cmn |

## Extension functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape.https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#(androidx.compose.foundation.shape.RoundedCornerShape).toPolygonShape()()` Converts a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#(androidx.compose.foundation.shape.AbsoluteRoundedCornerShape).toPolygonShape()()` Converts an `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape.https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#(androidx.compose.foundation.shape.CutCornerShape).toPolygonShape()()` Converts a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape.https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#(androidx.compose.foundation.shape.AbsoluteCutCornerShape).toPolygonShape()()` Converts an `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`. | Cmn |

## Top-level properties summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CircleShape()` Circular `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` with all the corners sized as the 50 percent of the shape size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#ZeroCornerSize()` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` always equals to zero. | Cmn |

## Top-level functions

### AbsoluteCutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteCutCornerShape.kt+function:AbsoluteCutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteCutCornerShape(corner: CornerSize): AbsoluteCutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` to apply. |

### AbsoluteCutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteCutCornerShape.kt+function:AbsoluteCutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteCutCornerShape(percent: Int): AbsoluteCutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Int)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Size in percents to apply. |

### AbsoluteCutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteCutCornerShape.kt+function:AbsoluteCutCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun AbsoluteCutCornerShape(size: Dp): AbsoluteCutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | Size in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to apply. |

### AbsoluteCutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteCutCornerShape.kt+function:AbsoluteCutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteCutCornerShape(size: Float): AbsoluteCutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Float)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Size in pixels to apply. |

### AbsoluteCutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteCutCornerShape.kt+function:AbsoluteCutCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun AbsoluteCutCornerShape(
    topLeft: Dp = 0.dp,
    topRight: Dp = 0.dp,
    bottomRight: Dp = 0.dp,
    bottomLeft: Dp = 0.dp
): AbsoluteCutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`.

### AbsoluteCutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteCutCornerShape.kt+function:AbsoluteCutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteCutCornerShape(
    topLeft: Float = 0.0f,
    topRight: Float = 0.0f,
    bottomRight: Float = 0.0f,
    bottomLeft: Float = 0.0f
): AbsoluteCutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in float.

### AbsoluteCutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteCutCornerShape.kt+function:AbsoluteCutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteCutCornerShape(
    topLeftPercent: @IntRange(from = 0, to = 100) Int = 0,
    topRightPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomRightPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomLeftPercent: @IntRange(from = 0, to = 100) Int = 0
): AbsoluteCutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteCutCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side.

| Parameters |
|---|---|
| `topLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top left corner clip size as a percentage of the smaller side, with a range of 0 - 100. |
| `topRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top right corner clip size as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom right clip size radius as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom left clip size radius as a percentage of the smaller side, with a range of 0 - 100. |

### AbsoluteRoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+function:AbsoluteRoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteRoundedCornerShape(corner: CornerSize): AbsoluteRoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` to apply. |

### AbsoluteRoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+function:AbsoluteRoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteRoundedCornerShape(percent: Int): AbsoluteRoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Int)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Size in percents to apply. |

### AbsoluteRoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+function:AbsoluteRoundedCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun AbsoluteRoundedCornerShape(size: Dp): AbsoluteRoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | Size in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to apply. |

### AbsoluteRoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+function:AbsoluteRoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteRoundedCornerShape(size: Float): AbsoluteRoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Float)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Size in pixels to apply. |

### AbsoluteRoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+function:AbsoluteRoundedCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun AbsoluteRoundedCornerShape(
    topLeft: Dp = 0.dp,
    topRight: Dp = 0.dp,
    bottomRight: Dp = 0.dp,
    bottomLeft: Dp = 0.dp
): AbsoluteRoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`.

### AbsoluteRoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+function:AbsoluteRoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteRoundedCornerShape(
    topLeft: Float = 0.0f,
    topRight: Float = 0.0f,
    bottomRight: Float = 0.0f,
    bottomLeft: Float = 0.0f
): AbsoluteRoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in pixels.

### AbsoluteRoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+function:AbsoluteRoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun AbsoluteRoundedCornerShape(
    topLeftPercent: @IntRange(from = 0, to = 100) Int = 0,
    topRightPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomRightPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomLeftPercent: @IntRange(from = 0, to = 100) Int = 0
): AbsoluteRoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#AbsoluteRoundedCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side.

| Parameters |
|---|---|
| `topLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top left corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| `topRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top right corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomRightPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom right corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomLeftPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom left corner radius as a percentage of the smaller side, with a range of 0 - 100. |

### CornerSize

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CornerSize.kt+function:CornerSize) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun CornerSize(percent: @IntRange(from = 0, to = 100) Int): CornerSize
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(kotlin.Int)` with provided size.

| Parameters |
|---|---|
| `percent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the corner size defined in percents of the shape's smaller side. Can't be negative or larger then 100 percents. |

### CornerSize

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CornerSize.kt+function:CornerSize) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun CornerSize(size: Dp): CornerSize
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(androidx.compose.ui.unit.Dp)` with provided size.

| Parameters |
|---|---|
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | the corner size defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. |

### CornerSize

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CornerSize.kt+function:CornerSize) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun CornerSize(size: Float): CornerSize
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CornerSize(kotlin.Float)` with provided size.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the corner size defined in pixels. |

### CutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CutCornerShape.kt+function:CutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun CutCornerShape(corner: CornerSize): CutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` to apply. |

### CutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CutCornerShape.kt+function:CutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun CutCornerShape(percent: Int): CutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Int)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Size in percents to apply. |

### CutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CutCornerShape.kt+function:CutCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun CutCornerShape(size: Dp): CutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | Size in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to apply. |

### CutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CutCornerShape.kt+function:CutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun CutCornerShape(size: Float): CutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Float)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Size in pixels to apply. |

### CutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CutCornerShape.kt+function:CutCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun CutCornerShape(
    topStart: Dp = 0.dp,
    topEnd: Dp = 0.dp,
    bottomEnd: Dp = 0.dp,
    bottomStart: Dp = 0.dp
): CutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`.

### CutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CutCornerShape.kt+function:CutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun CutCornerShape(
    topStart: Float = 0.0f,
    topEnd: Float = 0.0f,
    bottomEnd: Float = 0.0f,
    bottomStart: Float = 0.0f
): CutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in float.

### CutCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CutCornerShape.kt+function:CutCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun CutCornerShape(
    topStartPercent: @IntRange(from = 0, to = 100) Int = 0,
    topEndPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomEndPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomStartPercent: @IntRange(from = 0, to = 100) Int = 0
): CutCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#CutCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side.

| Parameters |
|---|---|
| `topStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top start corner clip size as a percentage of the smaller side, with a range of 0 - 100. |
| `topEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top end corner clip size as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom end clip size radius as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom start clip size radius as a percentage of the smaller side, with a range of 0 - 100. |

### MorphPolygonShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/MorphPolygonShape.kt+function:MorphPolygonShape) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
@RememberInComposition
fun MorphPolygonShape(
    start: PolygonShape,
    end: PolygonShape,
    progress: () -> Float
): Shape
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` that morphs between `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)` as `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)` moves from `0f` to `1f`.

Reads `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)` each time the outline is resolved. Values at or below `0f` resolve to `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)`; values at or above `1f` resolve to `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#MorphPolygonShape(androidx.compose.foundation.shape.PolygonShape,androidx.compose.foundation.shape.PolygonShape,kotlin.Function0)`. Create a separate instance for each morphing element.

```kotlin
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CornerRounding
import androidx.compose.foundation.shape.MorphPolygonShape
import androidx.compose.foundation.shape.PolygonShape
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp

// A badge that morphs between a rounded hexagon and a star as it is toggled. No remember
// keys are needed: the endpoints are constant and the current progress is read through the
// lambda each time the outline is resolved.
var selected by remember { mutableStateOf(false) }
val progress by animateFloatAsState(if (selected) 1f else 0f)
val shape = remember {
    MorphPolygonShape(
        start =
            PolygonShape {
                polygon(numVertices = 6, rounding = CornerRounding.fraction(0.2f))
            },
        end =
            PolygonShape.star(
                numPoints = 6,
                innerRadiusRatio = 0.6f,
                outerRounding = CornerRounding.fraction(0.2f),
            ),
        progress = { progress },
    )
}
Box(
    Modifier.size(96.dp).clip(shape).background(Color(0xFF4CAF50)).clickable {
        selected = !selected
    }
)
```

| Parameters |
|---|---|
| `start: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | starting shape of the morph |
| `end: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` | ending shape of the morph |
| `progress: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | returns the current morph progress |

### PolygonShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/PolygonShape.kt+function:PolygonShape) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
@RememberInComposition
fun PolygonShape(builder: PolygonShapeScope.() -> PolygonShapeGeometry): PolygonShape
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#PolygonShape(kotlin.Function1)` from geometry returned by `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#PolygonShape(kotlin.Function1)`.

- Runs `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#PolygonShape(kotlin.Function1)` in `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeScope` on each resolution with the resolved `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeScope#size()`, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeScope#layoutDirection()`, and `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density`.

- Re-reads captured state inside `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#PolygonShape(kotlin.Function1)` on each resolution and rebuilds the outline when the returned `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry` changes.

- Interprets `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry` coordinates in layout pixels (`(0f, 0f)` at the top-left to `(size.width, size.height)` at the bottom-right). Call `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeTransformScope#scaleToFit(androidx.compose.ui.layout.ContentScale,androidx.compose.ui.Alignment)` inside `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape#transform(kotlin.Function1)` to scale custom coordinates (such as a `[0f, 1f]` unit square) to fit the layout bounds.

```kotlin
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CornerRounding
import androidx.compose.foundation.shape.PolygonShape
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp

// A diamond built from pixel coordinates derived from the resolved layout size, with an
// exact 8dp corner rounding.
val diamond = remember {
    PolygonShape {
        polygon(
            vertices =
                listOf(
                    Offset(size.width / 2f, 0f),
                    Offset(size.width, size.height / 2f),
                    Offset(size.width / 2f, size.height),
                    Offset(0f, size.height / 2f),
                ),
            rounding = CornerRounding.dp(radius = 8.dp),
        )
    }
}
Box(Modifier.size(96.dp).clip(diamond).background(Color(0xFFFF5722)))
```

```kotlin
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CornerRounding
import androidx.compose.foundation.shape.PolygonShape
import androidx.compose.foundation.shape.PolygonShapeGeometry
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp

// A kite authored in the unit square [0..1] with per-vertex rounding as fractions of the
// bounds, scaled and centered into the container via transform { scaleToFit() }.
val kite = remember {
    val geometry =
        PolygonShapeGeometry(
            vertices =
                listOf(Offset(0.5f, 0f), Offset(1f, 0.4f), Offset(0.5f, 1f), Offset(0f, 0.4f)),
            perVertexRounding =
                listOf(
                    CornerRounding.fraction(0.1f),
                    CornerRounding.fraction(0.15f),
                    CornerRounding.fraction(0.05f),
                    CornerRounding.fraction(0.15f),
                ),
        )
    PolygonShape { geometry }.apply { transform { scaleToFit() } }
}

Box(Modifier.size(width = 120.dp, height = 84.dp).clip(kite).background(Color(0xFF673AB7)))
```

| Parameters |
|---|---|
| `builder: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeScope.() -> https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry` | lambda run in `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeScope` returning the shape's `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShapeGeometry` |

### RoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+function:RoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun RoundedCornerShape(corner: CornerSize): RoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.foundation.shape.CornerSize)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `corner: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` to apply. |

### RoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+function:RoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun RoundedCornerShape(percent: Int): RoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Int)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Size in percents to apply. |

### RoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+function:RoundedCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun RoundedCornerShape(size: Dp): RoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.ui.unit.Dp)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | Size in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to apply. |

### RoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+function:RoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun RoundedCornerShape(size: Float): RoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Float)` with the same size applied for all four corners.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Size in pixels to apply. |

### RoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+function:RoundedCornerShape) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun RoundedCornerShape(
    topStart: Dp = 0.dp,
    topEnd: Dp = 0.dp,
    bottomEnd: Dp = 0.dp,
    bottomStart: Dp = 0.dp
): RoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` with sizes defined in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`.

### RoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+function:RoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun RoundedCornerShape(
    topStart: Float = 0.0f,
    topEnd: Float = 0.0f,
    bottomEnd: Float = 0.0f,
    bottomStart: Float = 0.0f
): RoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` with sizes defined in pixels.

### RoundedCornerShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+function:RoundedCornerShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
fun RoundedCornerShape(
    topStartPercent: @IntRange(from = 0, to = 100) Int = 0,
    topEndPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomEndPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomStartPercent: @IntRange(from = 0, to = 100) Int = 0
): RoundedCornerShape
```

Creates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/package-summary#RoundedCornerShape(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` with sizes defined in percents of the shape's smaller side.

| Parameters |
|---|---|
| `topStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top start corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| `topEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The top end corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomEndPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom end corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| `bottomStartPercent: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 100) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The bottom start corner radius as a percentage of the smaller side, with a range of 0 - 100. |

## Extension functions

### RoundedCornerShape.toPolygonShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/PolygonShape.kt+function:toPolygonShape) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
fun RoundedCornerShape.toPolygonShape(): PolygonShape
```

Converts a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`.

Note: Approximates `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` using cubic Bézier curves and is not pixel-identical.

```kotlin
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.MorphPolygonShape
import androidx.compose.foundation.shape.PolygonShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.shape.toPolygonShape
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp

// Converting a corner-based shape to a PolygonShape lets it morph with any other polygon
// shape; here a rounded rectangle relaxes into a circle.
var expanded by remember { mutableStateOf(false) }
val progress by animateFloatAsState(if (expanded) 1f else 0f)
val shape = remember {
    MorphPolygonShape(
        start = RoundedCornerShape(12.dp).toPolygonShape(),
        end = PolygonShape.circle(),
        progress = { progress },
    )
}
Box(
    Modifier.size(96.dp).clip(shape).background(Color(0xFF03A9F4)).clickable {
        expanded = !expanded
    }
)
```

### AbsoluteRoundedCornerShape.toPolygonShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/PolygonShape.kt+function:toPolygonShape) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
fun AbsoluteRoundedCornerShape.toPolygonShape(): PolygonShape
```

Converts an `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`.

Corners do not swap with the layout direction.

Note: The resulting outline closely approximates the original shape, but is not pixel-identical because `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape` use different geometry and curve calculations. Avoid comparing them for 1:1 pixel equivalence.

### CutCornerShape.toPolygonShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/PolygonShape.kt+function:toPolygonShape) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
fun CutCornerShape.toPolygonShape(): PolygonShape
```

Converts a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`.

Note: The resulting outline closely approximates the original shape, but is not pixel-identical because `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CutCornerShape` use different geometry and curve calculations. Avoid comparing them for 1:1 pixel equivalence.

### AbsoluteCutCornerShape.toPolygonShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/PolygonShape.kt+function:toPolygonShape) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
fun AbsoluteCutCornerShape.toPolygonShape(): PolygonShape
```

Converts an `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape`.

Corners do not swap with the layout direction.

Note: The resulting outline closely approximates the original shape, but is not pixel-identical because `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/PolygonShape` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteCutCornerShape` use different geometry and curve calculations. Avoid comparing them for 1:1 pixel equivalence.

## Top-level properties

### CircleShape

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/RoundedCornerShape.kt+symbol:CircleShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
val CircleShape: RoundedCornerShape
```

Circular `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` with all the corners sized as the 50 percent of the shape size.

### ZeroCornerSize

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/CornerSize.kt+symbol:ZeroCornerSize) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)

```
val ZeroCornerSize: CornerSize
```

`https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize` always equals to zero.