Skip to main content

Function: colorToIntRgb()

colorToIntRgb(color): Rgb

Defined in: src/utils/color.ts:111

Convert a color to an [r, g, b] integer array (0..255). Ports color_to_int_rgb.

Parameters​

color​

string

Returns​

Rgb