Back to project page Sketcher.
The source code is released under:
Apache License
If you think the Android project Sketcher 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.sketcher.colorpicker; /*from w w w.j a v a 2 s . com*/ 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; } }