Takes a collection of colors and finds the nearest matches using the differenceHyab() color difference metric for a set of predefined palettes.
The function returns different values based on the kind parameter passed in:
An array of colors for the kind of scheme, if the kind parameter is specified.
Else it returns an object of all the palette types as keys and their values as an array of colors.
If no colors are valid for the palette types it returns an empty array for the palette results. It does not work with achromatic colors thus they're excluded from the resulting collection.
Takes a collection of colors and finds the nearest matches using the
differenceHyab()color difference metric for a set of predefined palettes.The function returns different values based on the
kindparameter passed in:kindof scheme, if thekindparameter is specified.