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>2015-12-26 21:28:33 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2015-12-26 21:28:33 +0300
commit39b75cc0d01d94503b200f520bf8af12860a2606 (patch)
treeba7d0a162cbdedbcd3fb05b0cfa80fcfd51fa5d3 /noise.cpp
parentfc0d6b8a81ee77c59a2ce8c0b7c9af9f8dd0ca44 (diff)
Arduion 1.6.6 and later, when you Include a library from the Sketch menu, will include _every_ header file - instead of just the library's main header file. Guard against that particular [REDACTED].
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 190e74e7..1e6f52dc 100644
--- a/noise.cpp
+++ b/noise.cpp
@@ -655,7 +655,7 @@ void fill_noise8(CRGB *leds, int num_leds,
void fill_noise16(CRGB *leds, int num_leds,
uint8_t octaves, uint16_t x, int scale,
uint8_t hue_octaves, uint16_t hue_x, int hue_scale,
- uint16_t time) {
+ uint16_t time, uint8_t hue_shift) {
uint8_t V[num_leds];
uint8_t H[num_leds];
@@ -666,7 +666,7 @@ void fill_noise16(CRGB *leds, int num_leds,
fill_raw_noise8(H,num_leds,hue_octaves,hue_x,hue_scale,time);
for(int i = 0; i < num_leds; i++) {
- leds[i] = CHSV(H[i],255,V[i]);
+ leds[i] = CHSV(H[i] + hue_shift,255,V[i]);
}
}