public final class RGB
extends java.lang.Object
Constructor and Description |
---|
RGB(int r,
int g,
int b)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getBlue()
Accessor for the blue component
|
int |
getGreen()
Accessor for the green component
|
int |
getRed()
Accessor for the red component
|
public RGB(int r, int g, int b)
r
- the red componentg
- the green componentb
- the blue componentpublic int getRed()
public int getGreen()
public int getBlue()