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-10-02 03:21:40 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-10-02 03:21:40 +0400
commitc4f3db5deb09e20702b0d16460efebc6f3a31119 (patch)
tree2f15870ddd9fcaaab9260c9e6b3d320433072966 /noise.cpp
parent4bb9ec547d95c895e24bf1d6f5c08fd61528a766 (diff)
Fix indexing error in one of the noise functions
Diffstat (limited to 'noise.cpp')
-rw-r--r--noise.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noise.cpp b/noise.cpp
index f0551c2e..36925c26 100644
--- a/noise.cpp
+++ b/noise.cpp
@@ -670,7 +670,7 @@ void fill_2dnoise16(CRGB *leds, int width, int height, bool serpentine,
for(int i = 0; i < height; i++) {
int wb = i*width;
for(int j = 0; j < width; j++) {
- CRGB led(CHSV(H[h1-i][h1-j],255,V[i][j]));
+ CRGB led(CHSV(H[h1-i][w1-j],255,V[i][j]));
int pos = j;
if(serpentine && (i & 0x1)) {