Skip to content

Documentation / @ripl/core / parseColor

Function: parseColor() ​

parseColor(value): ColorRGBA | undefined

Defined in: packages/core/src/color/index.ts:80

Parses any supported color string into an RGBA tuple, or returns undefined if no parser matches.

Parameters ​

ParameterType
valuestring

Returns ​

ColorRGBA | undefined