Static
addMap the given PaletteColor.HEX to the given PaletteColor.NAME.
The PaletteColor to map.
Static
getRetrieves the name of the color represented by the given colorHex. If the colorHex string is not well formatted or the nearest color function encounters an error, the method will return undefined.
The hex string representation of the color (format: #RRGGBB
).
Static
hasStatic
setSet the color names that could possibly be selected when searching for the nearest color match in getColorName.
An array of color objects with the properties name
and hex
.
Manager to store and retrieve the names of colors based on their hex string value. When a name has not yet been stored or found, the nearest color algorithm will be applied to find the name of the next closest color.
Since
2.0.0