public final class HsvTriplet extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHex() |
int |
getHsv() |
int |
getHueInt() |
double |
getHueNorm() |
int |
getSaturationInt() |
double |
getSaturationNorm() |
int |
getValueInt() |
double |
getValueNorm() |
int |
hashCode() |
static HsvTriplet |
of(double[] components) |
static HsvTriplet |
of(double hue,
double saturation,
double value) |
static HsvTriplet |
of(long hsv) |
static HsvTriplet |
of(long hue,
long saturation,
long value) |
static HsvTriplet |
of(String hexString) |
HsvTriplet |
scaled(double scaleHue,
double scaleSaturation,
double scaleValue) |
RgbTriplet |
toRgbTriplet() |
String |
toString() |
public String getHex()
public int getHsv()
public int getHueInt()
public double getHueNorm()
public int getSaturationInt()
public double getSaturationNorm()
public int getValueInt()
public double getValueNorm()
public HsvTriplet scaled(double scaleHue, double scaleSaturation, double scaleValue)
scaleHue
- Scale for the hue value.scaleSaturation
- Scale for the saturation value.scaleValue
- Scale for the lightness value.public RgbTriplet toRgbTriplet()
public static HsvTriplet of(double hue, double saturation, double value)
public static HsvTriplet of(double[] components)
public static HsvTriplet of(long hsv)
public static HsvTriplet of(long hue, long saturation, long value)
public static HsvTriplet of(String hexString)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.