diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-02 03:21:40 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-02 03:21:40 +0400 |
commit | c4f3db5deb09e20702b0d16460efebc6f3a31119 (patch) | |
tree | 2f15870ddd9fcaaab9260c9e6b3d320433072966 /noise.cpp | |
parent | 4bb9ec547d95c895e24bf1d6f5c08fd61528a766 (diff) |
Fix indexing error in one of the noise functions
Diffstat (limited to 'noise.cpp')
-rw-r--r-- | noise.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |