com.metsci.glimpse.support.color
Class RGBA
java.lang.Object
com.metsci.glimpse.support.color.RGBA
public final class RGBA
- extends java.lang.Object
Constructor Summary |
RGBA(java.awt.Color color)
|
RGBA(float[] rgba)
|
RGBA(float[] rgb,
float a)
|
RGBA(float r,
float g,
float b,
float a)
|
RGBA(RGBA rgba)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
white
public static final RGBA white
WHITE
public static final RGBA WHITE
lightGray
public static final RGBA lightGray
LIGHT_GRAY
public static final RGBA LIGHT_GRAY
gray
public static final RGBA gray
GRAY
public static final RGBA GRAY
darkGray
public static final RGBA darkGray
DARK_GRAY
public static final RGBA DARK_GRAY
black
public static final RGBA black
BLACK
public static final RGBA BLACK
red
public static final RGBA red
RED
public static final RGBA RED
pink
public static final RGBA pink
PINK
public static final RGBA PINK
orange
public static final RGBA orange
ORANGE
public static final RGBA ORANGE
yellow
public static final RGBA yellow
YELLOW
public static final RGBA YELLOW
green
public static final RGBA green
GREEN
public static final RGBA GREEN
magenta
public static final RGBA magenta
MAGENTA
public static final RGBA MAGENTA
cyan
public static final RGBA cyan
CYAN
public static final RGBA CYAN
blue
public static final RGBA blue
BLUE
public static final RGBA BLUE
r
public final float r
g
public final float g
b
public final float b
a
public final float a
RGBA
public RGBA(float r,
float g,
float b,
float a)
RGBA
public RGBA(RGBA rgba)
RGBA
public RGBA(float[] rgba)
RGBA
public RGBA(float[] rgb,
float a)
RGBA
public RGBA(java.awt.Color color)
fromIntRGBA
public static final RGBA fromIntRGBA(int r,
int g,
int b,
int a)
fromIntRGB
public static final RGBA fromIntRGB(int r,
int g,
int b)
fromHsb
public static final RGBA fromHsb(float hue,
float saturation,
float brightness,
float alpha)
getIntRed
public final int getIntRed()
getIntGreen
public final int getIntGreen()
getIntBlue
public final int getIntBlue()
getIntAlpha
public final int getIntAlpha()
withAlpha
public final RGBA withAlpha(float a)
withIntAlpha
public final RGBA withIntAlpha(int a)
isTransparent
public final boolean isTransparent()
toFloat4
public final float[] toFloat4()
toFloat3
public final float[] toFloat3()
toInt4
public final int[] toInt4()
toInt3
public final int[] toInt3()
Copyright © 2012 Metron, Inc.. All Rights Reserved.