diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-06-02 21:32:06 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-06-02 21:32:06 +0400 |
commit | 6079de290ed535656a2167f704b487c4c7fb7d41 (patch) | |
tree | 94e50f53c22987c1e2b826c9c9851115adb50144 /noise.cpp | |
parent | 66bddbcacec68cb078a2df73f1c2191a070e4506 (diff) |
Tweaking a bit.
Diffstat (limited to 'noise.cpp')
-rw-r--r-- | noise.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -469,7 +469,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 && (i&0x1)) { + if(serpentine) { pos = w1-j; } @@ -502,7 +502,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 && (i&0x1)) { + if(serpentine) { pos = w1-j; } |