Package de.xima.fc.color
Class HslUvTriplet
java.lang.Object
de.xima.fc.color.HslUvTriplet
- All Implemented Interfaces:
Serializable
Represents an HSLul color triplet, see https://www.hsluv.org/
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getHex()
int
getHsl()
int
double
int
double
int
double
int
hashCode()
static HslUvTriplet
of
(double[] components) static HslUvTriplet
of
(double hue, double saturation, double value) static HslUvTriplet
of
(long hsl) static HslUvTriplet
of
(long hue, long saturation, long lightness) static HslUvTriplet
scaled
(double scaleHue, double scaleSaturation, double scaleLightness) toString()
-
Method Details
-
equals
-
getHex
-
getHsl
public int getHsl() -
getHueInt
public int getHueInt() -
getHueNorm
public double getHueNorm() -
getLightnessInt
public int getLightnessInt() -
getLightnessNorm
public double getLightnessNorm() -
getSaturationInt
public int getSaturationInt() -
getSaturationNorm
public double getSaturationNorm() -
hashCode
public int hashCode() -
scaled
- Parameters:
scaleHue
- Scale for the hue value.scaleSaturation
- Scale for the saturation value.scaleLightness
- Scale for the lightness value.- Returns:
- Scales all components by the given factors.
-
with
-
toRgbTriplet
-
toString
-
of
-
of
-
of
-
of
-
of
-