public class ColorAdapter extends java.lang.Object implements ColorDetector, ColorIdentifier
Constructor and Description |
---|
ColorAdapter(BaseSensor colorSensor) |
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Return the Red, Green and Blue values together in one object.
|
int |
getColorID()
Return an enumerated constant that indicates the color detected.
|
public ColorAdapter(BaseSensor colorSensor)
public int getColorID()
ColorIdentifier
getColorID
in interface ColorIdentifier
public Color getColor()
ColorDetector
getColor
in interface ColorDetector