public final class RGBA extends Object
Modifier and Type | Field and Description |
---|---|
float |
a |
float |
b |
static RGBA |
black |
static RGBA |
BLACK |
static RGBA |
blue |
static RGBA |
BLUE |
static RGBA |
cyan |
static RGBA |
CYAN |
static RGBA |
DARK_GRAY |
static RGBA |
darkGray |
float |
g |
static RGBA |
gray |
static RGBA |
GRAY |
static RGBA |
green |
static RGBA |
GREEN |
static RGBA |
LIGHT_GRAY |
static RGBA |
lightGray |
static RGBA |
magenta |
static RGBA |
MAGENTA |
static RGBA |
orange |
static RGBA |
ORANGE |
static RGBA |
pink |
static RGBA |
PINK |
float |
r |
static RGBA |
red |
static RGBA |
RED |
static RGBA |
white |
static RGBA |
WHITE |
static RGBA |
yellow |
static RGBA |
YELLOW |
Constructor and Description |
---|
RGBA(Color color) |
RGBA(float[] rgba) |
RGBA(float[] rgb,
float a) |
RGBA(float r,
float g,
float b,
float a) |
RGBA(RGBA rgba) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static RGBA |
fromHsb(float hue,
float saturation,
float brightness,
float alpha) |
static RGBA |
fromIntRGB(int r,
int g,
int b) |
static RGBA |
fromIntRGBA(int r,
int g,
int b,
int a) |
int |
getIntAlpha() |
int |
getIntBlue() |
int |
getIntGreen() |
int |
getIntRed() |
int |
hashCode() |
boolean |
isTransparent() |
float[] |
toFloat3() |
float[] |
toFloat4() |
int[] |
toInt3() |
int[] |
toInt4() |
RGBA |
withAlpha(float a) |
RGBA |
withIntAlpha(int a) |
public static final RGBA white
public static final RGBA WHITE
public static final RGBA lightGray
public static final RGBA LIGHT_GRAY
public static final RGBA gray
public static final RGBA GRAY
public static final RGBA darkGray
public static final RGBA DARK_GRAY
public static final RGBA black
public static final RGBA BLACK
public static final RGBA red
public static final RGBA RED
public static final RGBA pink
public static final RGBA PINK
public static final RGBA orange
public static final RGBA ORANGE
public static final RGBA yellow
public static final RGBA YELLOW
public static final RGBA green
public static final RGBA GREEN
public static final RGBA magenta
public static final RGBA MAGENTA
public static final RGBA cyan
public static final RGBA CYAN
public static final RGBA blue
public static final RGBA BLUE
public final float r
public final float g
public final float b
public final float a
public RGBA(float r, float g, float b, float a)
public RGBA(RGBA rgba)
public RGBA(float[] rgba)
public RGBA(float[] rgb, float a)
public RGBA(Color color)
public static final RGBA fromIntRGBA(int r, int g, int b, int a)
public static final RGBA fromIntRGB(int r, int g, int b)
public static final RGBA fromHsb(float hue, float saturation, float brightness, float alpha)
public final int getIntRed()
public final int getIntGreen()
public final int getIntBlue()
public final int getIntAlpha()
public final RGBA withAlpha(float a)
public final RGBA withIntAlpha(int a)
public final boolean isTransparent()
public final float[] toFloat4()
public final float[] toFloat3()
public final int[] toInt4()
public final int[] toInt3()
Copyright © 2016 Metron, Inc.. All rights reserved.