public class TintColor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static TintColor |
BLACK |
static TintColor |
WHITE |
| Constructor and Description |
|---|
TintColor(float r,
float g,
float b,
float a) |
TintColor(int rgb) |
TintColor(int rgba,
boolean hasalpha) |
TintColor(int red,
int green,
int blue) |
TintColor(int r,
int g,
int b,
int a) |
| Modifier and Type | Method and Description |
|---|---|
TintColor |
brighter() |
TintColor |
darker() |
int |
getAlpha() |
int |
getBlue() |
float[] |
getComponents(float[] compArray) |
int |
getGreen() |
static TintColor |
getHSBColor(float h,
float s,
float b) |
int |
getRed() |
int |
getRGB() |
static int |
HSBtoRGB(float hue,
float saturation,
float brightness) |
static float[] |
RGBtoHSB(int r,
int g,
int b,
float[] hsbvals) |
public TintColor(int r,
int g,
int b,
int a)
public TintColor(float r,
float g,
float b,
float a)
public TintColor(int red,
int green,
int blue)
public TintColor(int rgb)
public TintColor(int rgba,
boolean hasalpha)
public int getRGB()
public int getRed()
public int getGreen()
public int getBlue()
public int getAlpha()
public static float[] RGBtoHSB(int r,
int g,
int b,
float[] hsbvals)
public static int HSBtoRGB(float hue,
float saturation,
float brightness)
public TintColor brighter()
public TintColor darker()
public static TintColor getHSBColor(float h, float s, float b)
public float[] getComponents(float[] compArray)