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
Good question!, I tried today some examples myself and I think you need to play a bit with the values, if we increase the DEPTH base to say 6, we get more colors and something more similar to "white", I guess this is because as we are constantly cutting the colors by the middle we are not getting the extremes represented correctly, and to see this we have to expand the number of colors.
Below you can see an example using DEPTH 6
You could also tweak this part here where we calculate the difference between the colors, since we are omiting various one of those could be something more akin to the white you are looking for https://github.com/zygisS22/color-palette-extraction/blob/master/index.js#L23
Trying to get colors from this image. TY
The text was updated successfully, but these errors were encountered: