# rgbToInt

Pack RGB channels into an integer.

```js
rgbToInt(red, green, blue)
```

## Arguments

| Argument | Type | Meaning |
| --- | --- | --- |
| `red, green, blue` | number | Use integers 0..255. |

## Returns

0xRRGGBB integer.

## Example

```js
console.log(rgbToInt(255, 0, 0)); // 16711680
```

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