# Sprite Animation

## 🎞️ SpriteAnimation Class

Represents a frame-by-frame sprite animation for displaying sequential images at a controlled speed.

> Namespace: `Esper.FeelSpeak.UI`\
> \
> \
> Type: `class`

***

### 📦 Fields

| Access   | Field     | Type           | Description                                                                                                                 |
| -------- | --------- | -------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `public` | `sprites` | `List<Sprite>` | Ordered list of all sprites used as frames.                                                                                 |
| `public` | `speed`   | `float`        | Playback speed multiplier: `1` = each sprite shown once per second, `2` = twice per second, `0.5` = once every two seconds. |

***

### 🧾 Properties

| Access   | Property  | Type    | Description                                                           |
| -------- | --------- | ------- | --------------------------------------------------------------------- |
| `public` | `Fps`     | `float` | Frames per second for the entire animation (`sprites.Count * speed`). |
| `public` | `IsValid` | `bool`  | Checks if the sprite animation is valid (has any sprites).            |
