Java tutorial
//package com.java2s; //License from project: Creative Commons License import android.graphics.Color; public class Main { public static int getDarkColor(int color) { int darkColor = 0; int r = Math.max(Color.red(color) - 25, 0); int g = Math.max(Color.green(color) - 25, 0); int b = Math.max(Color.blue(color) - 25, 0); darkColor = Color.rgb(r, g, b); return darkColor; } }