Package org.polyfrost.polyui.color
Class PolyColor.Static
-
- All Implemented Interfaces:
public class PolyColor.Static extends PolyColor
-
-
Field Summary
Fields Modifier and Type Field Description private final Floathueprivate final <Error class: unknown class>saturationprivate final <Error class: unknown class>brightnessprivate final <Error class: unknown class>alphaprivate final transient Integerargbprivate final Integerrgbaprivate final Booleantransparentprivate final Integerrprivate final Integergprivate final Integerbprivate final Integera
-
Constructor Summary
Constructors Constructor Description PolyColor.Static(Float hue, Float saturation, Float brightness, Float alpha)
-
Method Summary
Modifier and Type Method Description final FloatgetHue()The hue of this color. final <Error class: unknown class>getSaturation()The saturation of this color. final <Error class: unknown class>getBrightness()The brightness of this color. final <Error class: unknown class>getAlpha()The alpha of this color. final IntegergetArgb()return an integer representation of this color. -
-
Method Detail
-
getHue
final Float getHue()
The hue of this color. Can be any value, but is
mod 360, so values are always between 0 and 360.
-
getSaturation
final <Error class: unknown class> getSaturation()
The saturation of this color. Clamped between
0f..1f.
-
getBrightness
final <Error class: unknown class> getBrightness()
The brightness of this color. Clamped between
0f..1f.
-
getAlpha
final <Error class: unknown class> getAlpha()
The alpha of this color. Clamped between
0f..1f.
-
-
-
-