public final class Color
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Color |
BLACK |
static Color |
BLUE |
static Color |
CYAN |
static Color |
GRAY |
static Color |
GREEN |
static Color |
MAGENTA |
static RGBSpace |
NATIVE_SPACE |
static Color |
RED |
static Color |
WHITE |
static Color |
YELLOW |
Constructor and Description |
---|
Color() |
Color(Color c) |
Color(float gray) |
Color(float r,
float g,
float b) |
Color(int rgb) |
Modifier and Type | Method and Description |
---|---|
Color |
add(Color c) |
static Color |
add(Color c1,
Color c2) |
static Color |
add(Color c1,
Color c2,
Color dest) |
static Color |
black() |
static Color |
blend(Color c1,
Color c2,
Color b) |
static Color |
blend(Color c1,
Color c2,
Color b,
Color dest) |
static Color |
blend(Color c1,
Color c2,
float b) |
static Color |
blend(Color c1,
Color c2,
float b,
Color dest) |
Color |
clamp(float min,
float max) |
Color |
constrainRGB() |
Color |
copy() |
Color |
div(Color c) |
static Color |
div(Color c1,
Color c2) |
static Color |
div(Color c1,
Color c2,
Color dest) |
Color |
exp() |
float |
getAverage() |
float |
getLuminance() |
float |
getMax() |
float |
getMin() |
float[] |
getRGB() |
static boolean |
hasContrast(Color c1,
Color c2,
float thresh) |
boolean |
isBlack() |
boolean |
isInf() |
boolean |
isNan() |
boolean |
isWhite() |
Color |
madd(Color s,
Color c) |
Color |
madd(float s,
Color c) |
Color |
mul(Color c) |
static Color |
mul(Color c1,
Color c2) |
static Color |
mul(Color c1,
Color c2,
Color dest) |
Color |
mul(float s) |
static Color |
mul(float s,
Color c) |
static Color |
mul(float s,
Color c,
Color dest) |
Color |
opposite() |
Color |
set(Color c) |
Color |
set(float r,
float g,
float b) |
Color |
setRGB(int rgb) |
Color |
setRGBE(int rgbe) |
Color |
sub(Color c) |
static Color |
sub(Color c1,
Color c2) |
static Color |
sub(Color c1,
Color c2,
Color dest) |
Color |
toLinear() |
Color |
toNonLinear() |
int |
toRGB() |
int |
toRGBA(float a) |
int |
toRGBE() |
java.lang.String |
toString() |
static Color |
white() |
public static final RGBSpace NATIVE_SPACE
public static final Color BLACK
public static final Color WHITE
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public static final Color YELLOW
public static final Color CYAN
public static final Color MAGENTA
public static final Color GRAY
public Color()
public Color(float gray)
public Color(float r, float g, float b)
public Color(Color c)
public Color(int rgb)
public static Color black()
public static Color white()
public Color toNonLinear()
public Color toLinear()
public Color copy()
public final Color set(float r, float g, float b)
public final Color setRGB(int rgb)
public final Color setRGBE(int rgbe)
public final boolean isBlack()
public boolean isWhite()
public final float getLuminance()
public final float getMin()
public final float getMax()
public final float getAverage()
public final float[] getRGB()
public final int toRGB()
public final int toRGBA(float a)
public final int toRGBE()
public final Color constrainRGB()
public final boolean isNan()
public final boolean isInf()
public final Color mul(float s)
public final Color exp()
public final Color opposite()
public final Color clamp(float min, float max)
public java.lang.String toString()
toString
in class java.lang.Object