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 float
a
float
b
static ImmutableColor
black
static ImmutableColor
blue
static ImmutableColor
cyan
static ImmutableColor
darkGray
static ImmutableColor
darkGreen
float
g
static ImmutableColor
gray
static ImmutableColor
green
static ImmutableColor
lightGray
static ImmutableColor
lightGreen
static ImmutableColor
magenta
static ImmutableColor
orange
static ImmutableColor
pink
static ImmutableColor
purple
float
r
static ImmutableColor
red
static ImmutableColor
transparent
static ImmutableColor
white
static ImmutableColor
yellow
-
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 ImmutableColor
add(ImmutableColor immutableColor)
ImmutableColor
brighter()
ImmutableColor
brighter(float float1)
ImmutableColor
darker()
ImmutableColor
darker(float float1)
static ImmutableColor
decode(java.lang.String string)
boolean
equals(java.lang.Object object)
byte
getAlphaByte()
float
getAlphaFloat()
int
getAlphaInt()
byte
getBlueByte()
float
getBlueFloat()
int
getBlueInt()
byte
getGreenByte()
float
getGreenFloat()
int
getGreenInt()
byte
getRedByte()
float
getRedFloat()
int
getRedInt()
int
hashCode()
static java.lang.Integer[]
HSBtoRGB(float float1, float float2, float float3)
ImmutableColor
interp(ImmutableColor immutableColor, float float1)
ImmutableColor
multiply(Color color)
static ImmutableColor
random()
ImmutableColor
scale(float float1)
Color
toMutableColor()
java.lang.String
toString()
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:
equals
in 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:
hashCode
in classjava.lang.Object
-
multiply
-
scale
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
interp
-
HSBtoRGB
public static java.lang.Integer[] HSBtoRGB(float float1, float float2, float float3)
-