lejos.nxt
Class ColorSensor.Color

java.lang.Object
  extended by lejos.robotics.Color
      extended by lejos.nxt.ColorSensor.Color
Enclosing class:
ColorSensor

public static class ColorSensor.Color
extends Color

Extended color class, that includes the background reading at the time that the other readings were made.


Field Summary
 
Fields inherited from class lejos.robotics.Color
BLACK, BLUE, CYAN, DARK_GRAY, GRAY, GREEN, LIGHT_GRAY, MAGENTA, NONE, ORANGE, PINK, RED, WHITE, YELLOW
 
Constructor Summary
ColorSensor.Color(int red, int green, int blue, int background, int colorId)
           
 
Method Summary
 int getBackground()
          Return the background light level reading
 
Methods inherited from class lejos.robotics.Color
getBlue, getColor, getGreen, getRed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorSensor.Color

public ColorSensor.Color(int red,
                         int green,
                         int blue,
                         int background,
                         int colorId)
Method Detail

getBackground

public int getBackground()
Return the background light level reading

Returns:
the background light level