> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/breeze/util/color.md).

# Color

A simple color object.

### Constructors

#### Constructor

> **new Color**(`r`, `g`, `b`, `a`): `Color`

**Parameters**

**r**

`number`

Red, 0-255.

**g**

`number`

Green, 0-255.

**b**

`number`

Blue, 0-255.

**a**

`number`

Alpha, 0-255.

**Returns**

`Color`

#### Constructor

> **new Color**(`r`, `g`, `b`): `Color`

**Parameters**

**r**

`number`

Red, 0-255.

**g**

`number`

Green, 0-255.

**b**

`number`

Blue, 0-255.

**Returns**

`Color`

#### Constructor

> **new Color**(`hex`): `Color`

**Parameters**

**hex**

`string`

A hex color: "#rrggbb" or "#rrggbbaa", the # is optional.

**Returns**

`Color`

### Methods

#### alpha()

> **alpha**(): `number`

**Returns**

`number`

***

#### argb()

> **argb**(): `number`

The color packed as a 32-bit ARGB integer.

**Returns**

`number`

***

#### blue()

> **blue**(): `number`

**Returns**

`number`

***

#### green()

> **green**(): `number`

**Returns**

`number`

***

#### rainbow()

> **rainbow**(): `boolean`

**Returns**

`boolean`

Whether this color cycles its hue over time.

***

#### red()

> **red**(): `number`

**Returns**

`number`

***

#### withAlpha()

> **withAlpha**(`alpha`): `Color`

A copy of this color with another alpha.

**Parameters**

**alpha**

`number`

The alpha, 0-255.

**Returns**

`Color`
