Back to project page Sketcher-Tab.
The source code is released under:
Apache License
If you think the Android project Sketcher-Tab listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.sketchertab.colorpicker; /*from w ww .j ava 2 s . c o m*/ import android.graphics.Color; class Utils { static float[] color2HSV(int color) { float[] hsv = new float[3]; int red = Color.red(color); int green = Color.green(color); int blue = Color.blue(color); Color.RGBToHSV(red, green, blue, hsv); return hsv; } }