androidx.compose.material3
toShapeSince 1.10Experimental
Function
No hand-written docs yet.
Returns a Shape that is remembered across compositions for this RoundedPolygon.
ParametersExperimental
@Composable
fun RoundedPolygon.toShape(
startAngle: Int = 0,
): Shape
startAngle: IntOptional
startAngle: IntOptionalDefault: 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 RoundedPolygon's centroid (centerX, centerY).
Library docs
Returns a Shape that is remembered across compositions for this RoundedPolygon.