get Darker Color - Android Graphics

Android examples for Graphics:Color Darken

Description

get Darker Color

Demo Code


//package com.java2s;

public class Main {
    public static int getDarkerColor(int color) {
        return (color & 0xfefefe) >> 1;
    }/*from w w w. j  a  v  a 2s  .c  om*/
}

Related Tutorials