Java Random Color randomColor(Random r)

Here you can find the source of randomColor(Random r)

Description

random Color

License

Open Source License

Declaration

public static Color randomColor(Random r) 

Method Source Code

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

import java.awt.*;

import java.util.*;

public class Main {
    public static Color randomColor(Random r) {
        return new Color(r.nextInt(127) + 127, r.nextInt(127) + 127,
                r.nextInt(127) + 127);/*from  w  ww .  j  av  a 2  s  .  com*/
    }
}

Related

  1. randomColor()
  2. randomColor()
  3. randomColor()
  4. randomColor(int idx)
  5. randomColor(int seed)
  6. randomColorFactor()
  7. randomColorValue()
  8. randomColour(Random random)
  9. randomDarkColor()