|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectColor3f
edu.byu.phun.Color
public class Color
This is a color representation using floating point values between 0.0 (dark) and 1.0 (fully lit) for red, green and blue. This is used throughout the edu.byu.phun package wherever colors are needed.
| Field Summary | |
|---|---|
static Color |
BLACK
Constant for black |
static Color |
BLUE
Constant for blue |
static Color |
BROWN
Constant for brown |
static Color |
DARK_BLUE
Constant for dark blue |
static Color |
DARK_BROWN
Constant for dark brown |
static Color |
DARK_GRAY
Constant for dark gray |
static Color |
DARK_GREEN
Constant for dark green |
static Color |
DARK_RED
Constant for dark red |
static Color |
GRAY
Constant for gray |
static Color |
GREEN
Constant for green |
static Color |
LIGHT_BLUE
Constant for light blue |
static Color |
LIGHT_BROWN
Constant for light brown |
static Color |
LIGHT_GRAY
Constant for light gray |
static Color |
LIGHT_GREEN
Constant for light green |
static Color |
ORANGE
Constant for orange |
static Color |
PINK
Constant for pink |
static Color |
PURPLE
Constant for purple |
static Color |
RED
Constant for red. |
static Color |
WHITE
Constant for white |
static Color |
YELLOW
Constant for yellow |
| Constructor Summary | |
|---|---|
Color()
Constructs the color black |
|
Color(Color3f color)
Constructs a color object from a Color3f object drawn from Java 3D |
|
Color(double red,
double green,
double blue)
Constructs a new color from the Red, Green, Blue components. |
|
| Method Summary | |
|---|---|
double |
getBlue()
Returns the blue component of the color. |
double |
getGreen()
Returns the green component of the color. |
double |
getRed()
Returns the red component of the color. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Color RED
public static final Color PINK
public static final Color YELLOW
public static final Color ORANGE
public static final Color BROWN
public static final Color LIGHT_BROWN
public static final Color DARK_BROWN
public static final Color DARK_RED
public static final Color GREEN
public static final Color LIGHT_GREEN
public static final Color DARK_GREEN
public static final Color BLUE
public static final Color LIGHT_BLUE
public static final Color DARK_BLUE
public static final Color PURPLE
public static final Color BLACK
public static final Color WHITE
public static final Color GRAY
public static final Color LIGHT_GRAY
public static final Color DARK_GRAY
| Constructor Detail |
|---|
public Color(double red,
double green,
double blue)
red - component color for red 0.0=no red, 1.0=maximum red.green - component color for green 0.0=no green, 1.0=maximum green.blue - component color for blue 0.0=no blue, 1.0=maximum blue.public Color(Color3f color)
color - the new color.public Color()
| Method Detail |
|---|
public double getRed()
public double getGreen()
public double getBlue()
public java.lang.String toString()
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||