> For the complete documentation index, see [llms.txt](https://rawetrip.gitbook.io/rawetrip-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rawetrip.gitbook.io/rawetrip-api/documentation/variables/animate.md).

# animate

## Functions:

### lerp

`animate.lerp(start: number, end: number, speed: number)`

| Name      | Type         | Description |
| --------- | ------------ | ----------- |
| **start** | **`number`** | start       |
| **end**   | **`number`** | end         |
| **speed** | **`number`** | speed       |

Returns a smooth number change.

### lerp\_color

`animate.lerp_color(start: color, end: color, speed: number):`

| Name      | Type         | Description |
| --------- | ------------ | ----------- |
| **start** | **`color`**  | start       |
| **end**   | **`color`**  | end         |
| **speed** | **`number`** | speed       |

Returns a smooth color change.
