public interface IsColor
Modifier and Type | Method and Description |
---|---|
IsColor |
alpha(double alpha)
Clones the color applying the alpha value.
|
IsColor |
brighter()
Creates a new color that is a brighter version of this color.
|
IsColor |
brighter(double alpha)
Creates a new color that is a brighter version of this color.
|
IsColor |
darker()
Creates a new
Color that is a darker version of this Color .This method applies an arbitrary scale factor to each of the three RGB components of this Color to create a
darker version of this Color .Although brighter and darker are inverse operations, the results of a series of invocations of
these two methods might be inconsistent because of rounding errors. |
IsColor |
darker(double alpha)
Creates a new
Color that is a darker version of this Color .This method applies an arbitrary scale factor to each of the three RGB components of this Color to create a
darker version of this Color .Although brighter and darker are inverse operations, the results of a series of invocations of
these two methods might be inconsistent because of rounding errors. |
double |
getAlpha()
Returns the alpha rate.
|
int |
getBlue()
Returns the blue value.
|
int |
getGreen()
Returns the green value.
|
int |
getRed()
Returns the red value.
|
String |
toHex()
Returns HEX string value which represents the color.
|
String |
toHSL()
Returns HSL string value which represents the color.
|
String |
toHSLA()
Returns HSLA string value which represents the color.
|
String |
toRGB()
Returns RGB string value which represents the color.
|
String |
toRGBA()
Returns RGBA string value which represents the color.
|
int |
toRGBs()
As IEC 61966-2-1:1999, applies to the encoding and communication
of RGB colors used in computer systems and similar applications, by defining encoding transformations for use in defined
reference conditions.
|
int getRed()
int getGreen()
int getBlue()
double getAlpha()
IsColor alpha(double alpha)
alpha
- the alpha to setString toRGBA()
String toRGB()
String toHex()
String toHSLA()
String toHSL()
int toRGBs()
byte byte byte byte | | | | | +--------+--------+--------+--------+ alpha red green blue
IsColor brighter()
brighter
and darker
are inverse operations, the results of a series of invocations of
these two methods might be inconsistent because of rounding errors.IsColor brighter(double alpha)
brighter
and darker
are inverse operations, the results of a series of invocations of
these two methods might be inconsistent because of rounding errors.alpha
- the alpha to setIsColor darker()
Color
that is a darker version of this Color
.Color
to create a
darker version of this Color
.brighter
and darker
are inverse operations, the results of a series of invocations of
these two methods might be inconsistent because of rounding errors.IsColor darker(double alpha)
Color
that is a darker version of this Color
.Color
to create a
darker version of this Color
.brighter
and darker
are inverse operations, the results of a series of invocations of
these two methods might be inconsistent because of rounding errors.alpha
- the alpha to set