Package org.polyfrost.polyui.color
Interface PolyColor
-
- All Implemented Interfaces:
public interface PolyColor(revised 1.3) The color used by PolyUI. It stores the color in the HSBA format, and can be converted to ARGB.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPolyColor.Staticpublic classPolyColor.Mutablepublic final classPolyColor.Chromapublic classPolyColor.Animatablepublic classPolyColor.Gradientpublic classPolyColor.Constants
-
Method Summary
Modifier and Type Method Description abstract FloatgetHue()The hue of this color. abstract FloatgetSaturation()The saturation of this color. abstract FloatgetBrightness()The brightness of this color. abstract FloatgetAlpha()The alpha of this color. abstract IntegergetArgb()return an integer representation of this color. BooleangetTransparent()Integerred()Integergreen()Integerblue()Integeralpha()-
-
Method Detail
-
getHue
abstract Float getHue()
The hue of this color. Can be any value, but is
mod 360, so values are always between 0 and 360.
-
getSaturation
abstract Float getSaturation()
The saturation of this color. Clamped between
0f..1f.
-
getBrightness
abstract Float getBrightness()
The brightness of this color. Clamped between
0f..1f.
-
getArgb
abstract Integer getArgb()
return an integer representation of this color. Utilizes bit-shifts to store the color as one 32-bit integer, like so:
0bAAAAAAAARRRRRRRRGGGGGGGGBBBBBBBBaka0xAARRGGBB
-
getTransparent
Boolean getTransparent()
-
-
-
-