Android Open Source - Sketcher-Tab Utils

From Project

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.

Java Source Code

package org.sketchertab.colorpicker;
/*from w  ww  .j ava  2  s  .  c o  m*/

class Utils {
  static float[] color2HSV(int color) {
    float[] hsv = new float[3];

    int red =;
    int green =;
    int blue =;
    Color.RGBToHSV(red, green, blue, hsv);

    return hsv;

Java Source Code List