# intToRgb

Unpack an RGB integer.

```js
intToRgb(color)
```

## Arguments

| Argument | Type | Meaning |
| --- | --- | --- |
| `color` | number | 0xRRGGBB integer. |

## Returns

[red, green, blue].

## Example

```js
console.log(intToRgb(0xFF0000)); // [255, 0, 0]
```

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
