Skip to content

Documentation / spryte / toRGBA

Function: toRGBA() ​

toRGBA(color): number

Defined in: color.ts:7

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

Parameters ​

color ​

Color

Returns ​

number