| Package | Description |
|---|---|
| net.returnvoid.color |
A package concerning colors, color spaces, color metrics and color palettes.
|
| Modifier and Type | Method and Description |
|---|---|
RGBColor |
RGBColor.copy() |
static RGBColor |
RGBColor.getMeanColor(java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors
|
static RGBColor |
RGBColor.getMeanColor(int start,
int end,
java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors.
|
static RGBColor |
RGBColor.getMeanColor(int start,
int end,
RColor... colors)
Calculates the mean color of the input colors.
|
static RGBColor |
RGBColor.getMeanColor(RColor... colors)
Calculates the mean color of the input colors
|
static RGBColor |
RGBColor.getRandomRGB()
Creates a new opaque RGBColor with random values.
|
static RGBColor |
RGBColor.lerpColors(RColor input1,
RColor input2,
float amt)
Lerps the two input colors and creates a new color.
|
RGBColor |
RGBColor.set(int hex)
Sets the channel values by the given color.
|
RGBColor |
RGBColor.setAlpha(java.lang.Float alpha) |
RGBColor |
RGBColor.setAlpha(int alpha)
Sets the value of alpha / transparency.
|
RGBColor |
RGBColor.setBlue(java.lang.Float b)
Sets the blue value.
|
RGBColor |
RGBColor.setBlue(int b)
Sets the blue value.
|
RGBColor |
RGBColor.setGreen(java.lang.Float g)
Sets the green value.
|
RGBColor |
RGBColor.setGreen(int g)
Sets the green value.
|
RGBColor |
RGBColor.setRed(java.lang.Float r)
Sets the red value.
|
RGBColor |
RGBColor.setRed(int r)
Sets the red value.
|
RGBColor |
XYZColor.toRGB() |
RGBColor |
RGBColor.toRGB() |
RGBColor |
RColor.toRGB()
Returns a RGBColor representation of the current color.
|
RGBColor |
LCHColor.toRGB() |
RGBColor |
LabColor.toRGB() |
RGBColor |
HSBColor.toRGB() |
static RGBColor |
RGBColor.toRGB(java.lang.Integer hex)
Creates an opaque RGBColor by the given input value.
|
static RGBColor |
RGBColor.toRGB(java.lang.Integer hex,
float alpha)
Creates RGBColor with transparency by the given input value.
|