The color class holds preset color values for use with the Spike, such as with the Light and ColorSensor libraries.
BLACK=0MAGENTA=1PURPLE=2BLUE=3AZURE=4TURQUOISE=5GREEN=6YELLOW=7ORANGE=8RED=91
2
3
4
5
6
use Libraries.Robots.Spike.Light
use Libraries.Robots.Spike.Color
Color color
Light light
light:Color(light:POWER, color:BLUE)
light:Color(light:CONNECT, color:RED)