Here you can find the source of brighter(Color c)
public static Color brighter(Color c)
//package com.java2s; import java.awt.Color; public class Main { /**/*from w ww . ja v a2 s .c o m*/ * This is a weaker version of {@link Color#brighter()} * Uses a factor closer to 1. * @see Color#brighter() * @return brighter Color */ public static Color brighter(Color c) { float[] hsb = new float[3]; int r = c.getRed(); int g = c.getGreen(); int b = c.getBlue(); Color.RGBtoHSB(r, g, b, hsb); //System.out.println("Saturation: " + hsb[1] + " -> " + (hsb[1] * 1.05f)); //System.out.println("Brightness: " + hsb[2] + " -> " + (hsb[2] * 1.05f)); return Color.getHSBColor(hsb[0], Math.min(1f, hsb[1] * 1.3f), Math.min(1f, hsb[2] * 1.05f)); } }