public class Colour extends Object
Modifier and Type | Field and Description |
---|---|
static Colour |
BLACK |
static Colour |
WHITE |
Constructor and Description |
---|
Colour(float r,
float g,
float b) |
Colour(float r,
float g,
float b,
float a) |
Colour(int rgb) |
Colour(int rgba,
boolean alpha) |
Colour(int r,
int g,
int b) |
Colour(int r,
int g,
int b,
int a) |
Modifier and Type | Method and Description |
---|---|
int |
getAlpha() |
int |
getBlue() |
int |
getGreen() |
int |
getRed() |
int |
getRGB() |
static Colour |
random() |
String |
toHexString() |
static Colour |
valueOf(String colourAsHexString) |