# Function: toRGBA()

> **toRGBA**(`color`): `number`

Defined in: [color.ts:7](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/color.ts#L7)

Normalise a colour to `0xRRGGBBAA` (unsigned). Hex strings are cached; other CSS colours resolve through the browser.

## Parameters

### color

[`Color`](../type-aliases/Color.md)

## Returns

`number`
