Rainbow Lights

Objective:

Change the color of the train's top LED light continuously while moving.

Sample Solution:

You can use the distance variable streaming from the train to set the color hue of the top LED. As the train moves, the LED color continuously changes.