public static int RGB(float[] hsv) { return Color.HSVToColor(hsv); }
this function add an int, froma color. how can i convert that int to a hexa string: #efefef
The answer of st0le is not correct with respect to colors. It does not work if first color components are 0. So toHexString is useless.
However this code will work as expected:
String strColor = String.format("#%06X", 0xFFFFFF & intColor);
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