|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cult3d.world.RGB
This class provides a representation of a RGB color.
Field Summary | |
float |
B
The B component of the RGB color. |
float |
G
The G component of the RGB color. |
float |
R
The R component of the RGB color. |
Constructor Summary | |
RGB()
Constructs a RGB object and initializes it to the color black (R=0, B=0, G=0). |
|
RGB(java.awt.Color color)
Constructs a RGB object and initializes it to match the color of the given Color object. |
|
RGB(float r,
float g,
float b)
Constructs a RGB object and initializes it to the RGB color given as arguments. |
Method Summary | |
java.lang.String |
getInfo()
This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations and versions of Cult3D. |
java.lang.String |
toString()
Returns a string representation of the values of this object. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public float R
public float G
public float B
Constructor Detail |
public RGB()
public RGB(float r, float g, float b)
r
- The R component of the RGB color.g
- The G component of the RGB color.b
- The B component of the RGB color.public RGB(java.awt.Color color)
color
- The java.awt.Color object which color will be copied.Method Detail |
public java.lang.String getInfo()
This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations and versions of Cult3D.
public java.lang.String toString()
Returns a string representation of the values of this object.
This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations and versions of Cult3D.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |