Skip to content

parseColour

parseColour(value): number | null

Defined in: colour.ts:29

0xRRGGBB for a number in range, #rgb, #rrggbb, rgb()/rgba() or hsl()/hsla() (comma or space separated); null for anything else, which callers treat as “not set”. Named colours ("tomato") are not supported: they would need a 148-entry table for a convenience a hex code already gives.

ExplorerColour | null | undefined

number | null