Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.graphics.Color;

public class Main {
    public static int lightenColor(int color) {
        return Color.rgb(Math.min(Color.red(color) + 50, 255), Math.min(Color.green(color) + 50, 255),
                Math.min(Color.blue(color) + 50, 255));
    }
}