lejos.nxt
Class ColorSensor.Color
java.lang.Object
lejos.robotics.Color
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorSensor.Color
public ColorSensor.Color(int red,
int green,
int blue,
int background,
int colorId)
getBackground
public int getBackground()
- Return the background light level reading
- Returns:
- the background light level