lejos.robotics
Interface ColorDetector

All Known Implementing Classes:
ColorHTSensor, ColorSensor

public interface ColorDetector

This interface defines the methods of a generic ColorDetector object.

See Also:
ColorSensor, ColorHTSensor

Method Summary
 Color getColor()
          Return the Red, Green and Blue values together in one object.
 int getColorID()
          Return an enumerated constant that indicates the color detected.
 

Method Detail

getColor

Color getColor()
Return the Red, Green and Blue values together in one object.

Returns:
Color object containing the three RGB component values between 0-255.

getColorID

int getColorID()
Return an enumerated constant that indicates the color detected. e.g. Color.BLUE

Returns:
An integer from the Color constants, such as Color.BLUE