public class Colors extends Object
r
a
i
n
b
o
w
, and different ways to get them.| Modifier and Type | Class and Description |
|---|---|
static class |
Colors.Blues |
static class |
Colors.Browns |
static class |
Colors.Grays |
static class |
Colors.Greens |
static class |
Colors.Oranges |
static class |
Colors.Pinks |
static class |
Colors.Purples |
static class |
Colors.Reds |
static class |
Colors.Whites |
static class |
Colors.Yellows |
| Constructor and Description |
|---|
Colors() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateTransparency(int percentTransparent) |
static Color |
darken(Color color) |
static Color |
getRandomColor() |
static Color |
getTransparentVersion(Color color,
int percentTransparency) |
static Color |
lighten(Color color) |
static void |
mockRandom() |
public static Color getRandomColor()
public static void mockRandom()
public static int calculateTransparency(int percentTransparent)
Copyright © 2021. All rights reserved.