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 he
If you want to convert to javascript format:
val hexColor = String.format("%06X", 0xFFFFFFFF.and(R.color.text.toColorInt(context).toLong())) val javascriptHexColor = "#" + hexColor.substring(2) + hexColor.substring(0, 2)