> ## Documentation Index
> Fetch the complete documentation index at: https://lua.wingless.one/llms.txt
> Use this file to discover all available pages before exploring further.

# Color

```lua theme={null}
color(r, g, b, a) -> color
color('#rrggbb') -> color
color('#rrggbbaa') -> color
```

RGBA color, components 0-255.

## Methods

| Method | Returns | Description |
| - | - | - |
| `alpha(a)` | `color` | Copy with new alpha |
| `lerp(other, t)` | `color` | Linear interpolation |
| `unpack()` | `r, g, b, a` | Components |
| `hex()` | `string` | `#rrggbb` or `#rrggbbaa` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.