public final class RgbTriplet extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getBlueInt() |
double |
getBlueNorm() |
int |
getGreenInt() |
double |
getGreenNorm() |
String |
getHex() |
int |
getRedInt() |
double |
getRedNorm() |
int |
getRgb() |
int |
hashCode() |
static RgbTriplet |
of(double[] components) |
static RgbTriplet |
of(double red,
double green,
double blue) |
static RgbTriplet |
of(long rgb) |
static RgbTriplet |
of(long red,
long green,
long blue) |
static RgbTriplet |
of(String hexString) |
static RgbTriplet |
of(String hexString,
RgbTriplet defaultValue) |
RgbTriplet |
scaled(double scaleRed,
double scaleGreen,
double scaleBlue) |
CssColor |
toCssColor() |
HslUvTriplet |
toHslUvTriplet() |
HsvTriplet |
toHsvTriplet() |
String |
toString() |
public int getBlueInt()
public double getBlueNorm()
public int getGreenInt()
public double getGreenNorm()
public String getHex()
public int getRedInt()
public double getRedNorm()
public int getRgb()
public RgbTriplet scaled(double scaleRed, double scaleGreen, double scaleBlue)
scaleRed
- Scale for the red value.scaleGreen
- Scale for the green value.scaleBlue
- Scale for the blue value.public CssColor toCssColor()
public HslUvTriplet toHslUvTriplet()
public HsvTriplet toHsvTriplet()
public static RgbTriplet of(double red, double green, double blue)
public static RgbTriplet of(double[] components)
public static RgbTriplet of(long rgb)
public static RgbTriplet of(long red, long green, long blue)
public static RgbTriplet of(String hexString)
public static RgbTriplet of(String hexString, RgbTriplet defaultValue)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.