How to implement color picker
in LibGDX like below:
Any help will be appreciated.
Basically you would have an Image
with the texture in your question, and detect touches/drags
over it. Once you know the coordinates you're on, and having the Pixmap
, you can know the color code with.-
public int getPixel(int x, int y)
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With