Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Color; public class Main { public static int hsvToColor(int[] hsv) { assert (hsv.length == 3); float[] hsv_float = new float[3]; hsv_float[0] = hsv[0]; hsv_float[1] = (float) hsv[1] / 100; hsv_float[2] = (float) hsv[2] / 100; return Color.HSVToColor(hsv_float); } public static int hsvToColor(int h, int s, int v) { return Color.HSVToColor(new float[] { h, (float) s / 100, (float) v / 100 }); } }