skydoves / ColorPickerView

🎨 Android colorpicker for getting colors from any images by tapping on the desired color.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I want to set a color in the palette.

Astar75 opened this issue · comments

Is it possible to set the desired color in a custom palette?
I read that setInitialColor() can only work if there is a default palette, but I would like to find a way to set it on a custom palette. Maybe you can suggest an implementation?

Unfortunately, searching for specific coordinates using a specific color in a custom palette is impossible now.
The setInitialColor only works in the HSV color model.
The best way is just saving the specific coordinates and move the selector where you want.

The problem goes to the fact that the other fragment that uses the fine-tuning of the color must be linked to another fragment that uses your library.
And so I also thought to keep the position of the colors.
Well, if, for example, take an image and use the fore loop to go through the pixels comparing with the color, and if you find it, then set the selector there?