Package zombie.core
Class Color
java.lang.Object
zombie.core.Color
- All Implemented Interfaces:
java.io.Serializable
public 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
float
g
static Color
gray
static Color
green
static Color
lightGray
static Color
magenta
static Color
orange
static Color
pink
float
r
static Color
red
static Color
transparent
static Color
white
static Color
yellow
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
add(Color c)
Color
addToCopy(Color c)
Color
brighter()
Color
brighter(float scale)
Color
darker()
Color
darker(float scale)
static Color
decode(java.lang.String nm)
boolean
equals(java.lang.Object other)
void
fromColor(int value)
int
getAlpha()
int
getAlphaByte()
float
getAlphaFloat()
int
getBlue()
int
getBlueByte()
float
getBlueFloat()
int
getGreen()
int
getGreenByte()
float
getGreenFloat()
int
getRed()
int
getRedByte()
float
getRedFloat()
int
hashCode()
void
interp(Color to, float delta, Color dest)
Color
multiply(Color c)
void
scale(float value)
Color
scaleCopy(float value)
void
set(Color other)
void
setColor(Color A, Color B, float delta)
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
-
blue
-
green
-
black
-
gray
-
cyan
-
darkGray
-
lightGray
-
pink
-
orange
-
magenta
-
a
public float a -
b
public float b -
g
public float g -
r
public float r
-
-
Constructor Details
-
Color
-
Color
public Color(float r, float g, float b) -
Color
public Color(float r, float g, float b, float a) -
Color
-
Color
public Color(int r, int g, int b) -
Color
public Color(int r, int g, int b, int a) -
Color
public Color(int value)
-
-
Method Details
-
setColor
-
fromColor
public void fromColor(int value) -
decode
-
add
-
addToCopy
-
brighter
-
brighter
-
darker
-
darker
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equals
in classjava.lang.Object
-
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
public void scale(float value) -
scaleCopy
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
interp
-