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:
authorMark Kriegsman <kriegsman@tr.org>2014-06-02 23:56:24 +0400
committerMark Kriegsman <kriegsman@tr.org>2014-06-02 23:56:24 +0400
commit5abbf749036e0c684ab08e562c7485361dda3888 (patch)
tree5b347b6c7a2f37b4c4a17abe1cab6d8936227709 /noise.cpp
parent4b47a7c7512e5fd6ff8126bbfe2b7439999e2149 (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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noise.cpp b/noise.cpp
index 4b41bf35..ecd2b181 100644
--- a/noise.cpp
+++ b/noise.cpp
@@ -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;
}