isColorString
isColorString(
s):boolean
Defined in: utils/helpers.ts:230
Quick test for whether a string already looks like a CSS colour the canvas
can consume directly. Tolerates leading whitespace. Used by resolveData
to decide whether to pass colorField values through verbatim or hash
them through the palette.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean