Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2014-06-02 21:32:06 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-06-02 21:32:06 +0400
commit6079de290ed535656a2167f704b487c4c7fb7d41 (patch)
tree94e50f53c22987c1e2b826c9c9851115adb50144 /noise.cpp
parent66bddbcacec68cb078a2df73f1c2191a070e4506 (diff)
Tweaking a bit.
Diffstat (limited to 'noise.cpp')
-rw-r--r--noise.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noise.cpp b/noise.cpp
index 6d2db292..fd13cd79 100644
--- a/noise.cpp
+++ b/noise.cpp
@@ -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;
}