com.nerius.grafx
Class FloatColor

java.lang.Object
  extended by com.nerius.grafx.FloatColor

public final class FloatColor
extends java.lang.Object

Each of alpha, red, green, and blue shall be in the range [0,1].


Field Summary
 double alpha
          Fully opaque colors have an alpha of 1.0.
 double blue
           
 double green
           
 double red
           
 
Constructor Summary
FloatColor(double red, double green, double blue)
           
FloatColor(double alpha, double red, double green, double blue)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alpha

public final double alpha
Fully opaque colors have an alpha of 1.0.


red

public final double red

green

public final double green

blue

public final double blue
Constructor Detail

FloatColor

public FloatColor(double alpha,
                  double red,
                  double green,
                  double blue)
Throws:
java.lang.IllegalArgumentException - if any one of alpha, red, green, and blue is not in the range [0,1].

FloatColor

public FloatColor(double red,
                  double green,
                  double blue)