Java tutorial
//package com.java2s; import android.graphics.Color; public class Main { /** Replace the hue in the given color */ public static int replaceHue(int color, float hue) { float[] hsv = new float[3]; Color.colorToHSV(color, hsv); hsv[0] = hue; return Color.HSVToColor(hsv); } }