public class ColourData extends Object
Modifier and Type | Field and Description |
---|---|
static ColourData |
BLACK |
static ColourData |
WHITE |
Constructor and Description |
---|
ColourData(float r,
float g,
float b) |
ColourData(float r,
float g,
float b,
float a) |
ColourData(int rgb) |
ColourData(int rgba,
boolean alpha) |
ColourData(int r,
int g,
int b) |
ColourData(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 ColourData |
random() |
String |
toHexString() |
static ColourData |
valueOf(String colourAsHexString) |
public static final ColourData BLACK
public static final ColourData WHITE
public ColourData(float r, float g, float b)
public ColourData(float r, float g, float b, float a)
public ColourData(int rgb)
public ColourData(int rgba, boolean alpha)
public ColourData(int r, int g, int b)
public ColourData(int r, int g, int b, int a)
public static ColourData random()
public static ColourData valueOf(String colourAsHexString)
public int getAlpha()
public int getBlue()
public int getGreen()
public int getRed()
public int getRGB()
public String toHexString()
Copyright © 2019 Optimatika. All rights reserved.