Skip to content

Documentation / @debuffjp/core / toRGBA

Function: toRGBA() ​

toRGBA(color): number

Defined in: spryte/dist/color.d.ts:4

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

Parameters ​

color ​

Color

Returns ​

number