diff options
author | Mark Kriegsman <kriegsman@tr.org> | 2014-06-02 23:56:24 +0400 |
---|---|---|
committer | Mark Kriegsman <kriegsman@tr.org> | 2014-06-02 23:56:24 +0400 |
commit | 5abbf749036e0c684ab08e562c7485361dda3888 (patch) | |
tree | 5b347b6c7a2f37b4c4a17abe1cab6d8936227709 /noise.cpp | |
parent | 4b47a7c7512e5fd6ff8126bbfe2b7439999e2149 (diff) |
Restoring 'serpentine' functionality. Might be faster to move it out of the loop, but at least it's functional this way.
Diffstat (limited to 'noise.cpp')
-rw-r--r-- | noise.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -472,7 +472,7 @@ void fill_2dnoise8(CRGB *leds, int width, int height, bool serpentine, CRGB led(CHSV(H[h1-i][w1-j],255,V[i][j])); int pos = j; - if(serpentine) { + if(serpentine && (i & 0x1)) { pos = w1-j; } @@ -505,7 +505,7 @@ void fill_2dnoise16(CRGB *leds, int width, int height, bool serpentine, CRGB led(CHSV(H[h1-i][w1-j],255,V[i][j])); int pos = j; - if(serpentine) { + if(serpentine && (i & 0x1)) { pos = w1-j; } |