Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.336 kb
void achromatic(Light * light, int position, unsigned long tick){
int brightness = 0;
//visible seems to run from about brightness:20-100
int shift = ((tick + (position * 20)) % 160);
if (shift >= 80){
brightness = 20 + shift - 80;
} else {
brightness = 100 - shift;
}
light->color.set_hsb( 0, 0, brightness);
}
Jump to Line
Something went wrong with that request. Please try again.