public final class HslUvTriplet extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHex() |
int |
getHsl() |
int |
getHueInt() |
double |
getHueNorm() |
int |
getLightnessInt() |
double |
getLightnessNorm() |
int |
getSaturationInt() |
double |
getSaturationNorm() |
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 |
of(String hexString) |
HslUvTriplet |
scaled(double scaleHue,
double scaleSaturation,
double scaleLightness) |
RgbTriplet |
toRgbTriplet() |
String |
toString() |
HslUvTriplet |
with(Double newHue,
Double newSaturation,
Double newLightness) |
public String getHex()
public int getHsl()
public int getHueInt()
public double getHueNorm()
public int getLightnessInt()
public double getLightnessNorm()
public int getSaturationInt()
public double getSaturationNorm()
public HslUvTriplet scaled(double scaleHue, double scaleSaturation, double scaleLightness)
scaleHue
- Scale for the hue value.scaleSaturation
- Scale for the saturation value.scaleLightness
- Scale for the lightness value.public HslUvTriplet with(Double newHue, Double newSaturation, Double newLightness)
public RgbTriplet toRgbTriplet()
public static HslUvTriplet of(double hue, double saturation, double value)
public static HslUvTriplet of(double[] components)
public static HslUvTriplet of(long hsl)
public static HslUvTriplet of(long hue, long saturation, long lightness)
public static HslUvTriplet of(String hexString)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.