Colors
Colors: the fill of an SVG element, and the black or white text that reads best on it.
| Export | What it does |
|---|---|
getContrastingTextColor | Picks the text color, pure black or pure white, that reads best on a background. |
getSvgFillColor | Reads the fill color of an SVG element as rendered, whatever sets it: attribute, class, inherited style. |
Rgb | An sRGB color, each channel from 0 to 255. |