Browse Source

Lighened Warps LED colors

tags/v0.4.0
Andrew Belt 7 years ago
parent
commit
c1621710aa
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      src/Warps.cpp

+ 9
- 9
src/Warps.cpp View File

@@ -126,15 +126,15 @@ struct WarpsAlgoLight : ValueLight {
void step() {
// TODO Set these to Warps' actual colors
static NVGcolor colors[9] = {
nvgHSL(0.5, 0.5, 0.7),
nvgHSL(0.6, 0.5, 0.7),
nvgHSL(0.7, 0.5, 0.7),
nvgHSL(0.8, 0.5, 0.7),
nvgHSL(0.9, 0.5, 0.7),
nvgHSL(0.0, 0.5, 0.7),
nvgHSL(0.1, 0.5, 0.7),
nvgHSL(0.2, 0.5, 0.7),
nvgHSL(0.3, 0.5, 0.7),
nvgHSL(0.5, 0.3, 0.85),
nvgHSL(0.6, 0.3, 0.85),
nvgHSL(0.7, 0.3, 0.85),
nvgHSL(0.8, 0.3, 0.85),
nvgHSL(0.9, 0.3, 0.85),
nvgHSL(0.0, 0.3, 0.85),
nvgHSL(0.1, 0.3, 0.85),
nvgHSL(0.2, 0.3, 0.85),
nvgHSL(0.3, 0.3, 0.85),
};
int i = clampi((int) *value, 0, 7);
NVGcolor color0 = colors[i];


Loading…
Cancel
Save