lejos.robotics
Interface ColorDetector

All Known Implementing Classes:
ColorLightSensor, ColorSensor

public interface ColorDetector


Method Summary
 int getBlueComponent()
           
 int[] getColor()
          Return the Red, Green and Blue values together in one array.
 int getGreenComponent()
           
 int getRedComponent()
           
 

Method Detail

getRedComponent

int getRedComponent()
Returns:
The calibrated/normalized red value (0-255)

getGreenComponent

int getGreenComponent()
Returns:
The calibrated/normalized green value (0-255)

getBlueComponent

int getBlueComponent()
Returns:
The calibrated/normalized blue value (0-255)

getColor

int[] getColor()
Return the Red, Green and Blue values together in one array. All values are 0-255.

Returns:
All three color values. The array index for Red is 0, Green is 1, Blue is 2.