BLACK, BLACK_DYE, BLUE, BLUE_DYE, BROWN_DYE, CYAN_DYE, DYE_COLORS, GRAY_DYE, GREEN, GREEN_DYE, LIGHT_BLUE_DYE, LIGHT_GRAY_DYE, LIME_DYE, MAGENTA_DYE, ORANGE_DYE, PINK_DYE, PURPLE_DYE, RED, RED_DYE, WHITE, WHITE_DYE, YELLOW_DYE| Constructor and Description |
|---|
RGB(int value) |
RGB(int r,
int g,
int b)
Constructs an RGB object with 100% alpha value (no transparency)
|
RGB(int a,
int r,
int g,
int b) |
| Modifier and Type | Method and Description |
|---|---|
int |
getA() |
int |
getB() |
int |
getChroma()
Gets the chroma value, which is related to the length of the vector in projected (hexagonal) space.
|
int |
getG() |
float |
getHSLSaturation()
Gets the saturation for this color based on chrominance and HSL luma.
|
float |
getHSVSaturation()
Gets the saturation for this color based on chrominance and HSV Value
|
int |
getHue()
Gets the HSV/HSL Hue, which is the angle around the color hexagon (or circle)
|
int |
getLightness()
Gets the HSL Lightness, or average light intensity, of this color
|
int |
getLuma()
Gets the HSL Luma, or perceptual brightness, of this color
|
int |
getR() |
int |
getValue()
Gets the HSV Value, which is just the largest component in the color
|
Color.RGB |
interpolate(Color.RGB endColor,
double t)
Calculates an interpolated value along the fraction t between 0.0 and 1.0.
|
int |
toRgb()
Gets an ARGB integer representing this color in the sRGB colorspace.
|
public RGB(int value)
public RGB(int a,
int r,
int g,
int b)
public RGB(int r,
int g,
int b)
public int toRgb()
Colorpublic int getA()
public int getR()
public int getG()
public int getB()
public int getChroma()
public int getHue()
public int getLightness()
public int getLuma()
public int getValue()
public float getHSVSaturation()
public float getHSLSaturation()
public Color.RGB interpolate(Color.RGB endColor, double t)
endColor - a Color to interpolate witht - fraction between 0.0 and 1.0