List of utility methods to do Random Color
Color | randomBrown() random Brown if (rand == null) rand = new Random(); return new Color(rand.nextInt(200), rand.nextInt(120), rand.nextInt(20)); |
Color | randomColor() random Color return new Color(randomColorValue(), randomColorValue(), randomColorValue()); |
Color | randomColor() random Color int c = (int) (Math.random() * 255); return new Color(Math.abs(c * 25) % 255, Math.abs(17 * c) % 255, Math.abs(34 * c) % 255); |
String | randomColor() random Color StringBuilder colorBuilder = new StringBuilder(); colorBuilder.append('#'); for (int i = 0; i < 6; i++) { Double position = Math.floor(Math.random() * 16); colorBuilder.append(letters[position.intValue()]); return colorBuilder.toString(); |
int | randomColor() random Color return RANDOM.nextInt(256);
|
Color | randomColor() random Color return new Color(r.nextInt(255), r.nextInt(255), r.nextInt(255)); |
Color | randomColor() random Color return new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random() * 255)); |
String | randomColor() random Color return colors[(int) (Math.random() * colors.length)]; |
java.awt.Color | randomColor() Generates and returns a random RGB Color . return new java.awt.Color(randomInteger(0, 255), randomInteger(0, 255), randomInteger(0, 255)); |
Color | randomColor(int idx) Port of DChip function of the same name. return randomColor(idx, 1.0f);
|