Package zombie.core
Class Color
java.lang.Object
zombie.core.Color
- All Implemented Interfaces:
java.io.Serializable
public final class Color
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description float
a
float
b
static Color
black
static Color
blue
static Color
cyan
static Color
darkGray
static Color
darkGreen
float
g
static Color
gray
static Color
green
static Color
lightGray
static Color
lightGreen
static Color
magenta
static Color
orange
static Color
pink
static Color
purple
float
r
static Color
red
static Color
transparent
static Color
white
static Color
yellow
-
Constructor Summary
Constructors Constructor Description Color()
Color(float float1, float float2, float float3)
Color(float float1, float float2, float float3, float float4)
Color(int int1)
Color(int int1, int int2, int int3)
Color(int int1, int int2, int int3, int int4)
Color(Color color)
Color(Color color, Color color2, float float1)
-
Method Summary
Modifier and Type Method Description static Color
abgrToColor(int int1, Color color)
void
add(Color color)
Color
addToCopy(Color color)
static int
blendABGR(int int1, int int2)
static int
blendBGR(int int1, int int2)
Color
brighter()
Color
brighter(float float1)
void
changeHSBValue(float float1, float float2, float float3)
static int
colorToABGR(float float1, float float2, float float3, float float4)
static int
colorToABGR(Color color)
Color
darker()
Color
darker(float float1)
static Color
decode(java.lang.String string)
boolean
equals(java.lang.Object object)
void
fromColor(int int1)
Deprecated.int
getAlpha()
int
getAlphaByte()
static float
getAlphaChannelFromABGR(int int1)
float
getAlphaFloat()
int
getBlue()
int
getBlueByte()
static float
getBlueChannelFromABGR(int int1)
float
getBlueFloat()
int
getGreen()
int
getGreenByte()
static float
getGreenChannelFromABGR(int int1)
float
getGreenFloat()
int
getRed()
int
getRedByte()
static float
getRedChannelFromABGR(int int1)
float
getRedFloat()
int
hashCode()
static Color
HSBtoRGB(float float1, float float2, float float3)
static Color
HSBtoRGB(float float1, float float2, float float3, Color color)
void
interp(Color color, float float1, Color color2)
static int
lerpABGR(int int1, int int2, float float1)
Color
multiply(Color color)
static int
multiplyABGR(int int1, int int2)
static int
multiplyBGR(int int1, int int2)
static Color
random()
Color
scale(float float1)
Color
scaleCopy(float float1)
Color
set(float float1, float float2, float float3)
Color
set(float float1, float float2, float float3, float float4)
Color
set(Color color)
void
setABGR(int int1)
static int
setAlphaChannelToABGR(int int1, float float1)
static int
setBlueChannelToABGR(int int1, float float1)
void
setColor(Color color, Color color2, float float1)
static int
setGreenChannelToABGR(int int1, float float1)
static int
setRedChannelToABGR(int int1, float float1)
static int
tintABGR(int int1, int int2)
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 float a -
b
public float b -
g
public float g -
r
public float r
-
-
Constructor Details
-
Color
public Color() -
Color
-
Color
public Color(float float1, float float2, float float3) -
Color
public Color(float float1, float float2, float float3, float float4) -
Color
-
Color
public Color(int int1, int int2, int int3) -
Color
public Color(int int1, int int2, int int3, int int4) -
Color
public Color(int int1)
-
-
Method Details
-
setColor
-
fromColor
@Deprecated public void fromColor(int int1)Deprecated. -
setABGR
public void setABGR(int int1) -
abgrToColor
-
colorToABGR
-
colorToABGR
public static int colorToABGR(float float1, float float2, float float3, float float4) -
multiplyABGR
public static int multiplyABGR(int int1, int int2) -
multiplyBGR
public static int multiplyBGR(int int1, int int2) -
blendBGR
public static int blendBGR(int int1, int int2) -
blendABGR
public static int blendABGR(int int1, int int2) -
tintABGR
public static int tintABGR(int int1, int int2) -
lerpABGR
public static int lerpABGR(int int1, int int2, float float1) -
getAlphaChannelFromABGR
public static float getAlphaChannelFromABGR(int int1) -
getBlueChannelFromABGR
public static float getBlueChannelFromABGR(int int1) -
getGreenChannelFromABGR
public static float getGreenChannelFromABGR(int int1) -
getRedChannelFromABGR
public static float getRedChannelFromABGR(int int1) -
setAlphaChannelToABGR
public static int setAlphaChannelToABGR(int int1, float float1) -
setBlueChannelToABGR
public static int setBlueChannelToABGR(int int1, float float1) -
setGreenChannelToABGR
public static int setGreenChannelToABGR(int int1, float float1) -
setRedChannelToABGR
public static int setRedChannelToABGR(int int1, float float1) -
random
-
decode
-
add
-
addToCopy
-
brighter
-
brighter
-
darker
-
darker
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
set
-
set
-
set
-
getAlpha
public int getAlpha() -
getAlphaFloat
public float getAlphaFloat() -
getRedFloat
public float getRedFloat() -
getGreenFloat
public float getGreenFloat() -
getBlueFloat
public float getBlueFloat() -
getAlphaByte
public int getAlphaByte() -
getBlue
public int getBlue() -
getBlueByte
public int getBlueByte() -
getGreen
public int getGreen() -
getGreenByte
public int getGreenByte() -
getRed
public int getRed() -
getRedByte
public int getRedByte() -
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
multiply
-
scale
-
scaleCopy
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
interp
-
changeHSBValue
public void changeHSBValue(float float1, float float2, float float3) -
HSBtoRGB
-
HSBtoRGB
-