Class ImmutableColor
java.lang.Object
zombie.core.ImmutableColor
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal float
final float
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
final float
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
final float
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
static final ImmutableColor
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableColor
(float _r, float _g, float _b) ImmutableColor
(float _r, float _g, float _b, float _a) ImmutableColor
(int value) ImmutableColor
(int _r, int _g, int _b) ImmutableColor
(int _r, int _g, int _b, int _a) ImmutableColor
(Color color) ImmutableColor
(Color A, Color B, float delta) ImmutableColor
(ImmutableColor color) -
Method Summary
Modifier and TypeMethodDescriptionbrighter()
brighter
(float scale) darker()
darker
(float scale) static ImmutableColor
boolean
byte
float
int
byte
float
int
byte
float
int
byte
float
int
int
hashCode()
static Integer[]
HSBtoRGB
(float hue, float saturation, float brightness) interp
(ImmutableColor to, float delta) static ImmutableColor
random()
scale
(float value) toString()
-
Field Details
-
transparent
-
white
-
yellow
-
red
-
purple
-
blue
-
green
-
black
-
gray
-
cyan
-
darkGray
-
lightGray
-
pink
-
orange
-
magenta
-
darkGreen
-
lightGreen
-
a
public final float a -
b
public final float b -
g
public final float g -
r
public final float r
-
-
Constructor Details
-
ImmutableColor
-
ImmutableColor
-
ImmutableColor
public ImmutableColor(float _r, float _g, float _b) -
ImmutableColor
public ImmutableColor(float _r, float _g, float _b, float _a) -
ImmutableColor
-
ImmutableColor
public ImmutableColor(int _r, int _g, int _b) -
ImmutableColor
public ImmutableColor(int _r, int _g, int _b, int _a) -
ImmutableColor
public ImmutableColor(int value)
-
-
Method Details
-
toMutableColor
-
random
-
decode
-
add
-
brighter
-
brighter
-
darker
-
darker
-
equals
-
getAlphaInt
public int getAlphaInt() -
getAlphaFloat
public float getAlphaFloat() -
getRedFloat
public float getRedFloat() -
getGreenFloat
public float getGreenFloat() -
getBlueFloat
public float getBlueFloat() -
getAlphaByte
public byte getAlphaByte() -
getBlueInt
public int getBlueInt() -
getBlueByte
public byte getBlueByte() -
getGreenInt
public int getGreenInt() -
getGreenByte
public byte getGreenByte() -
getRedInt
public int getRedInt() -
getRedByte
public byte getRedByte() -
hashCode
-
multiply
-
scale
-
toString
-
interp
-
HSBtoRGB
-