Java Random Color randomDarkColor()

Here you can find the source of randomDarkColor()

Description

return a random lighter color

License

Apache License

Declaration

public static Color randomDarkColor() 

Method Source Code

//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));
    }
}

Related

  1. randomColor(int seed)
  2. randomColor(Random r)
  3. randomColorFactor()
  4. randomColorValue()
  5. randomColour(Random random)
  6. randomDesaturatedColor(float alpha)