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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
string | null | undefined |
Returns
Section titled “Returns”RGBA | null