Package zombie.core
Class ImmutableColor
java.lang.Object
zombie.core.ImmutableColor
public final class ImmutableColor
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description floatafloatbstatic ImmutableColorblackstatic ImmutableColorbluestatic ImmutableColorcyanstatic ImmutableColordarkGraystatic ImmutableColordarkGreenfloatgstatic ImmutableColorgraystatic ImmutableColorgreenstatic ImmutableColorlightGraystatic ImmutableColorlightGreenstatic ImmutableColormagentastatic ImmutableColororangestatic ImmutableColorpinkstatic ImmutableColorpurplefloatrstatic ImmutableColorredstatic ImmutableColortransparentstatic ImmutableColorwhitestatic ImmutableColoryellow -
Constructor Summary
Constructors Constructor Description ImmutableColor(float float1, float float2, float float3)ImmutableColor(float float1, float float2, float float3, float float4)ImmutableColor(int int1)ImmutableColor(int int1, int int2, int int3)ImmutableColor(int int1, int int2, int int3, int int4)ImmutableColor(Color color)ImmutableColor(Color color, Color color2, float float1)ImmutableColor(ImmutableColor immutableColor) -
Method Summary
Modifier and Type Method Description ImmutableColoradd(ImmutableColor immutableColor)ImmutableColorbrighter()ImmutableColorbrighter(float float1)ImmutableColordarker()ImmutableColordarker(float float1)static ImmutableColordecode(java.lang.String string)booleanequals(java.lang.Object object)bytegetAlphaByte()floatgetAlphaFloat()intgetAlphaInt()bytegetBlueByte()floatgetBlueFloat()intgetBlueInt()bytegetGreenByte()floatgetGreenFloat()intgetGreenInt()bytegetRedByte()floatgetRedFloat()intgetRedInt()inthashCode()static java.lang.Integer[]HSBtoRGB(float float1, float float2, float float3)ImmutableColorinterp(ImmutableColor immutableColor, float float1)ImmutableColormultiply(Color color)static ImmutableColorrandom()ImmutableColorscale(float float1)ColortoMutableColor()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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 float1, float float2, float float3) -
ImmutableColor
public ImmutableColor(float float1, float float2, float float3, float float4) -
ImmutableColor
-
ImmutableColor
public ImmutableColor(int int1, int int2, int int3) -
ImmutableColor
public ImmutableColor(int int1, int int2, int int3, int int4) -
ImmutableColor
public ImmutableColor(int int1)
-
-
Method Details
-
toMutableColor
-
random
-
decode
-
add
-
brighter
-
brighter
-
darker
-
darker
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equalsin classjava.lang.Object
-
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()- Overrides:
hashCodein classjava.lang.Object
-
multiply
-
scale
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
interp
-
HSBtoRGB
public static java.lang.Integer[] HSBtoRGB(float float1, float float2, float float3)
-