---
title: "toPath"
description: "Returns a [Path] for this [Morph]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalMaterial3ExpressiveApi
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. |




