public class Hue
extends java.lang.Object
| Constructor and Description |
|---|
Hue() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addu(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b) |
static boolean |
approximate(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
float r) |
static com.badlogic.gdx.graphics.Color |
blend2d(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
com.badlogic.gdx.graphics.Color c,
com.badlogic.gdx.graphics.Color d,
float x,
float y) |
static int |
closest(com.badlogic.gdx.graphics.Color input,
com.badlogic.gdx.graphics.Color[] colors)
Returns the closest color in the array calculated by hue.
|
static float |
diff(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b) |
static com.badlogic.gdx.graphics.Color |
fromHSB(float hue,
float saturation,
float brightness) |
static com.badlogic.gdx.graphics.Color |
fromHSB(float hue,
float saturation,
float brightness,
com.badlogic.gdx.graphics.Color color) |
static com.badlogic.gdx.graphics.Color |
lightness(float l) |
static com.badlogic.gdx.graphics.Color |
mix(com.badlogic.gdx.graphics.Color[] colors,
com.badlogic.gdx.graphics.Color out,
float s) |
static com.badlogic.gdx.graphics.Color |
mix(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
float s) |
static com.badlogic.gdx.graphics.Color |
mix(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
float s,
com.badlogic.gdx.graphics.Color to) |
static com.badlogic.gdx.graphics.Color |
mix(int r1,
int g1,
int b1,
int r2,
int g2,
int b2,
float s) |
static com.badlogic.gdx.graphics.Color |
rgb(float r,
float g,
float b) |
static com.badlogic.gdx.graphics.Color |
rgb(int r,
int g,
int b) |
static com.badlogic.gdx.graphics.Color |
rgb(int r,
int g,
int b,
float brightness) |
static float[] |
RGBtoHSB(com.badlogic.gdx.graphics.Color color,
float[] hsbvals) |
static float[] |
RGBtoHSB(int r,
int g,
int b,
float[] hsbvals) |
static com.badlogic.gdx.graphics.Color |
round(com.badlogic.gdx.graphics.Color color,
float amount) |
static float |
sum(com.badlogic.gdx.graphics.Color color) |
public static boolean approximate(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
float r)
public static com.badlogic.gdx.graphics.Color round(com.badlogic.gdx.graphics.Color color,
float amount)
public static int closest(com.badlogic.gdx.graphics.Color input,
com.badlogic.gdx.graphics.Color[] colors)
public static float sum(com.badlogic.gdx.graphics.Color color)
public static float diff(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b)
public static void addu(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b)
public static com.badlogic.gdx.graphics.Color fromHSB(float hue,
float saturation,
float brightness)
public static com.badlogic.gdx.graphics.Color fromHSB(float hue,
float saturation,
float brightness,
com.badlogic.gdx.graphics.Color color)
public static float[] RGBtoHSB(int r,
int g,
int b,
float[] hsbvals)
public static float[] RGBtoHSB(com.badlogic.gdx.graphics.Color color,
float[] hsbvals)
public static com.badlogic.gdx.graphics.Color mix(int r1,
int g1,
int b1,
int r2,
int g2,
int b2,
float s)
public static com.badlogic.gdx.graphics.Color mix(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
float s)
public static com.badlogic.gdx.graphics.Color mix(com.badlogic.gdx.graphics.Color[] colors,
com.badlogic.gdx.graphics.Color out,
float s)
public static com.badlogic.gdx.graphics.Color mix(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
float s,
com.badlogic.gdx.graphics.Color to)
public static com.badlogic.gdx.graphics.Color blend2d(com.badlogic.gdx.graphics.Color a,
com.badlogic.gdx.graphics.Color b,
com.badlogic.gdx.graphics.Color c,
com.badlogic.gdx.graphics.Color d,
float x,
float y)
public static com.badlogic.gdx.graphics.Color rgb(int r,
int g,
int b)
public static com.badlogic.gdx.graphics.Color rgb(float r,
float g,
float b)
public static com.badlogic.gdx.graphics.Color rgb(int r,
int g,
int b,
float brightness)
public static com.badlogic.gdx.graphics.Color lightness(float l)