Package zombie.core
Class ImmutableColor
java.lang.Object
zombie.core.ImmutableColor
-
Field Summary
Modifier 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
ConstructorDescriptionImmutableColor
(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
public int hashCode() -
multiply
-
scale
-
toString
-
interp
-
HSBtoRGB
-