Java 3D Sidebar
 All Classes Namespaces Functions Variables
Color Class Reference

Static Public Member Functions

static Color rgb (byte r, byte g, byte b)
 Creates Color instance from RGB values. More...
 
static Color rgb (String rgbColor)
 Creates color instance from RGB string. More...
 

Static Public Attributes

static final Color RED = rgb((byte)251, (byte)3, (byte)16)
 
static final Color GREEN = rgb((byte)62, (byte)164, (byte)19)
 
static final Color BLUE = rgb((byte)0, (byte)0, (byte)255)
 
static final Color WHITE = rgb((byte)255, (byte)255, (byte)255)
 
static final Color BLACK = rgb((byte)0, (byte)0, (byte)0)
 
static final Color GREY = rgb((byte)128, (byte)128, (byte)128)
 
static final Color ORANGE = rgb((byte)248, (byte)128, (byte)7)
 
static final Color BACKGROUND = rgb((byte)16, (byte)28, (byte)41)
 

Package Functions

byte[] getArray ()
 

Static Package Functions

static Color fromArray (byte[] val)
 

Package Attributes

byte mG
 
byte mB
 
byte mA
 

Member Function Documentation

static Color fromArray ( byte[]  val)
staticpackage
byte [] getArray ( )
package

References Color.mB, and Color.mG.

static Color rgb ( byte  r,
byte  g,
byte  b 
)
static

Creates Color instance from RGB values.

Parameters
r
g
b
static Color rgb ( String  rgbColor)
static

Creates color instance from RGB string.

Parameters
rgbColorRGB string in rrggbb or #rrggbb format
Returns

Member Data Documentation

final Color BACKGROUND = rgb((byte)16, (byte)28, (byte)41)
static
final Color BLACK = rgb((byte)0, (byte)0, (byte)0)
static
final Color BLUE = rgb((byte)0, (byte)0, (byte)255)
static
final Color GREEN = rgb((byte)62, (byte)164, (byte)19)
static
final Color GREY = rgb((byte)128, (byte)128, (byte)128)
static
byte mA
package
byte mB
package

Referenced by Color.getArray().

byte mG
package

Referenced by Color.getArray().

final Color ORANGE = rgb((byte)248, (byte)128, (byte)7)
static
final Color RED = rgb((byte)251, (byte)3, (byte)16)
static
final Color WHITE = rgb((byte)255, (byte)255, (byte)255)
static