lpf2.color
Named colors for lights and color sensors.
Use them like hub.led.setColorIdx(color.RED) after
from lpf2 import color, or compare what a color sensor sees:
if sensor.getColorIdx() == color.BLUE: ...
Attributes
Black / off. |
|
Blue. |
|
Cyan. |
|
Green. |
|
Light blue. |
|
no colour / unknown. |
|
How many colors there are (BLACK to WHITE). |
|
Orange. |
|
Pink. |
|
Purple. |
|
Red. |
|
White. |
|
Yellow. |