Here you can find the source of randomDarkColor()
public static Color randomDarkColor()
//package com.java2s; //License from project: Apache License import java.util.*; import java.awt.*; public class Main { public static final Random RND = new Random(); /**//w w w . j a v a2 s .c om * return a random lighter color * @return */ public static Color randomDarkColor() { return new Color(0 + RND.nextInt(128), 0 + RND.nextInt(128), 0 + RND.nextInt(128)); } }