Android Color Lighter getLighter(int colour)

Here you can find the source of getLighter(int colour)

Description

get Lighter

License

Open Source License

Declaration

public static int getLighter(int colour) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.graphics.Color;

public class Main {
    public static int getLighter(int colour) {
        float[] hsv = new float[3];
        Color.colorToHSV(colour, hsv);
        hsv[2] /= 0.5f; // value component

        return Color.HSVToColor(hsv);
    }// ww w  .  ja v  a  2  s  . c  om
}

Related

  1. isColourLight(int colour)