Artenus 2D Framework
Artenus Reference
Represents a color with red, green, and blue components. This class does not provide transparency since it is not to be used for that purpose.
public final class RGB

Field Summary

Modifier and TypeField and Description
public b
Represents the blue component of the color represented by this RGB instance.
public g
Represents the green component of the color represented by this RGB instance.
public r
Represents the red component of the color represented by this RGB instance.

Constructor Summary

Modifier and TypeConstructor and Description
public RGB(float cr, float cg, float cb)
Creates a new RGB using the give red, green and blue components.
public RGB(String rgb)
Creates a new RGB using the color's string representation.

Method Summary

Methods inherited from java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

b
public b
Represents the blue component of the color represented by this RGB instance.
g
public g
Represents the green component of the color represented by this RGB instance.
r
public r
Represents the red component of the color represented by this RGB instance.

Constructor Detail

RGB
public  RGB(
    float cr,
    float cg,
    float cb
)
Creates a new RGB using the give red, green and blue components.
Parameters:
crThe red component of the color
cgThe green component of the color
cbThe blue component of the color
RGB
public  RGB(
    String rgb
)
Creates a new RGB using the color's string representation.
Parameters:
rgbA hexadecimal string of the form rrggbb or RRGGBB