| getRGBColor |
(Number red, Number green, Number blue) |
yoix.swing |
| getRGBColor |
(Object spec [, Color fail]) |
|
| |
Returns a
Color
that represents the
red,
green,
and
blue
color component arguments.
A color component that is a
double
should be a number between
0.0
and
1.0,
while a color component that is an
int
should be a number between
0
and
255.
If one or two arguments are suppled then
spec
must be a
Color,
a
String
that is a color name, a
String
that represents the number that encodes the color's red, green, and blue components
(hex representations should start with "0x" or "#"), or an
int
whose value encodes the color's red, green, and blue components.
The optional
fail
argument, which is
NULL
by default, is the color that is returned when
spec
does not represent a color.
|
Yoix is a registered trademark of AT&T Inc.
|