Class ImmutableColor
java.lang.Object
zombie.core.ImmutableColor
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatfinal floatstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorfinal floatstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorfinal floatstatic final ImmutableColorstatic final ImmutableColorstatic final ImmutableColorstatic 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 ImmutableColorbooleanbytefloatintbytefloatintbytefloatintbytefloatintinthashCode()static Integer[]HSBtoRGB(float hue, float saturation, float brightness) interp(ImmutableColor to, float delta) static ImmutableColorrandom()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
-