Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 295 Bytes
//runs through the whole rainbow
void unified_rainbow(Light * light, int position, unsigned long tick){
//30 here is the offset between lights.
//you'll probably want to change it depending on
//how far apart the lights are
int hue = tick % 360;
light->color.set_hsb( hue, 100, 100);