Skip to content

parseColor()

function parseColor(input): RGBA | null;

Parses the color formats allowed in templates: #rgb, #rgba, #rrggbb, #rrggbbaa, rgb(), rgba() and “transparent”. Returns null for anything else.

Parameter Type
input string | null | undefined

RGBA | null