|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmako5.gfx.Color
public final class Color
A color that may be applied.
Field Summary | |
---|---|
static Color |
YELLOW
|
Constructor Summary | |
---|---|
Color(Color c)
Makes a copy of another color. |
|
Color(float fRed_,
float fGreen_,
float fBlue_)
Makes a new color. |
|
Color(float fRed_,
float fGreen_,
float fBlue_,
float fAlpha_)
Makes a new color. |
Method Summary | |
---|---|
Object |
clone()
Clones this color. |
float |
getAlpha()
Returns the alpha component. |
float |
getBlue()
Returns the blue component. |
float |
getGreen()
Returns the green component. |
float |
getRed()
Returns the red component. |
void |
glApply()
Sets this as the current color for openGL. |
void |
set(Color rColor_)
Sets this color equal to another color. |
void |
set(float r,
float g,
float b,
float a)
Sets the color components of this. |
void |
setAlpha(float fAlpha_)
Changes the alpha component. |
void |
setBlue(float fBlue_)
Changes the blue component. |
void |
setGreen(float fGreen_)
Changes the green component. |
void |
setRed(float fRed_)
Changes the red component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Color YELLOW
Constructor Detail |
---|
public Color(float fRed_, float fGreen_, float fBlue_, float fAlpha_)
public Color(float fRed_, float fGreen_, float fBlue_)
public Color(Color c)
Method Detail |
---|
public Object clone()
clone
in class Object
public void glApply()
public void setRed(float fRed_)
public void setGreen(float fGreen_)
public void setBlue(float fBlue_)
public void setAlpha(float fAlpha_)
public void set(Color rColor_)
rColor_
- the target color to copypublic void set(float r, float g, float b, float a)
public float getRed()
public float getGreen()
public float getBlue()
public float getAlpha()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |