Color

The color class holds preset color values for use with the Spike, such as with the Light and ColorSensor libraries.

Constants

  1. BLACK=0
  2. MAGENTA=1
  3. PURPLE=2
  4. BLUE=3
  5. AZURE=4
  6. TURQUOISE=5
  7. GREEN=6
  8. YELLOW=7
  9. ORANGE=8
  10. RED=9

Example

1 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)