Function

toPath

Returns a Path for this Morph.

toPath

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

Returns a Path for this Morph.

Parameters

progress the Morph's progress
path a Path to rewind and set with the new path data. In case provided, this Path would be the returned one.
startAngle 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: