androidx.compose.material3

toPathSince 1.10Experimental

Function

No hand-written docs yet.

Returns a Path for this Morph.

With progress, pathExperimental

fun Morph.toPath(
    progress: Float,
    path: Path = Path(),
    startAngle: Int = 0,
): Path

progress: FloatRequired

the Morph's progress

path: PathOptional

Default: Path()

a Path to rewind and set with the new path data. In case provided, this Path would be the returned one.

startAngle: IntOptional

Default: 0

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.

Form 2Experimental

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

Same as above: startAngle.

Library docs

Returns a Path for this Morph.