Java Random Color makeRandomColor()

Here you can find the source of makeRandomColor()

Description

make Random Color

License

Open Source License

Declaration

public static Color makeRandomColor() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.Color;

import java.util.Random;

public class Main {
    public static Color makeRandomColor() {
        Random random = new Random();
        return new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256));
    }/* www. java  2 s. com*/
}

Related

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