Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 17 lines (14 sloc) 0.391 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// sort of vascillates between a blueish and a redish pink
void pink(Light * light, int position, unsigned long tick){
  //pink runs from about hue:285-325
  int hue;
  int shift = ((tick + (position * 20)) % 80);

  if (shift >= 40){
    // hue going up
    hue = 285 + shift - 40;
  } else {
    // hue going back down
    hue = 325 - shift;
  }

  light->color.set_hsb( hue, 100, 100);
}
Something went wrong with that request. Please try again.