toPath

Function

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

Returns a Path for this Morph.

Parameters

progressthe Morph's progress
patha Path to rewind and set with the new path data. In case provided, this Path would be the returned one.
startAnglethe 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.