lejos.robotics
Class Colors

java.lang.Object
  extended by lejos.robotics.Colors

public final class Colors
extends Object

Values for standard Lego colors.

Author:
Andy Shaw

Nested Class Summary
static class Colors.Color
           
 
Field Summary
static int BLACK
          Colors used as the output value when in full mode.
static int BLUE
           
static int GREEN
           
static int RED
           
static int RGB_BLANK
           
static int RGB_BLUE
           
static int RGB_GREEN
           
static int RGB_RED
          Index into the data returned by readRawValues and readValues when using the Color sensor in full mode.
static int WHITE
           
static int YELLOW
           
 
Constructor Summary
Colors()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLACK

public static final int BLACK
Colors used as the output value when in full mode. Values are compatible with LEGO firmware.

See Also:
Constant Field Values

BLUE

public static final int BLUE
See Also:
Constant Field Values

GREEN

public static final int GREEN
See Also:
Constant Field Values

YELLOW

public static final int YELLOW
See Also:
Constant Field Values

RED

public static final int RED
See Also:
Constant Field Values

WHITE

public static final int WHITE
See Also:
Constant Field Values

RGB_RED

public static final int RGB_RED
Index into the data returned by readRawValues and readValues when using the Color sensor in full mode.

See Also:
Constant Field Values

RGB_GREEN

public static final int RGB_GREEN
See Also:
Constant Field Values

RGB_BLUE

public static final int RGB_BLUE
See Also:
Constant Field Values

RGB_BLANK

public static final int RGB_BLANK
See Also:
Constant Field Values
Constructor Detail

Colors

public Colors()