You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Color stop positioning and interpolation hints are based on the CSS Images Level 4 working draft, but differs slightly in that interpolation hints don't alter the position of color stops.
Fixes a typo that caused formatter('rgb')('#f0f0f0f0') and similar examples to ignore the alpha channel of the input color, generating rgb(...) instead of rgba(...).
Stop treating the alpha channel specifically in the Euclidean distance formula. Instead, assume it's always the fourth channel and assign it a default weight of 0. This means that it's now possible to factor in the alpha into the distance, if needed.
There's also a change of handing NaN differences on a channel. In this case, the distance on that particular channel is considered to be zero. (Which kind of makes sense?)
Distances on the hue (h channel) are now computed with the shortest hue distance, taking into account the cyclical nature of this channel. (#68).