Java Random Color randomColor()

Here you can find the source of randomColor()

Description

random Color

Declaration

public static Color randomColor() 

Method Source Code


//package com.java2s;
import java.awt.Color;

public class Main {
    public static Color randomColor() {
        return new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random() * 255));
    }//from   w w w .j  a va  2  s .co  m
}

Related

  1. makeRandomColor(Color color)
  2. makeRandomColor(Color color, Color darkestColor, int maxAttempts)
  3. randomBrown()
  4. randomColor()
  5. randomColor()
  6. randomColor()
  7. randomColor()
  8. randomColor()
  9. randomColor()