Package de.linusdev.lutils.color
Interface HSVAColor
- All Superinterfaces:
Color
- All Known Implementing Classes:
HSVAColorImpl
Represents a
H = hue, S = saturation, V = value, A = alpha/transparency
Color as HSVA.H = hue, S = saturation, V = value, A = alpha/transparency
-
Method Details
-
hue
double hue()- Returns:
- hue of this color in degree (from 0°, inclusive, to 360°, exclusive)
-
saturation
double saturation()- Returns:
- saturation in percent (from 0 to 100)
-
value
double value()- Returns:
- value in percent (from 0 to 100)
-
alpha
double alpha()- Returns:
- alpha value of this color
-
toRGBAColor
Description copied from interface:ColorThisColorconverted toRGBAColor. If this is already aRGBAColor, this object itself may be returned.- Specified by:
toRGBAColorin interfaceColor- Returns:
RGBAColor
-
toHSVAColor
Description copied from interface:ColorThisColorconverted toHSVAColor. If this is already aHSVAColor, this object itself may be returned.- Specified by:
toHSVAColorin interfaceColor- Returns:
HSVAColor
-