140 {
141
142
143
144
145 u16 PRNG16 = 11337;
147
153 if (bglight > 64) {
155 } else if (bglight > 16) {
157 } else {
159 }
160 }
161
163
164 for (u16 i = 0; i <
mNumLeds; i++) {
165 PRNG16 = (u16)(PRNG16 * 2053) + 1384;
166 u16 myclockoffset16 = PRNG16;
167 PRNG16 = (u16)(PRNG16 * 2053) + 1384;
168 u8 myspeedmultiplierQ5_3 =
169 ((((PRNG16 & 0xFF) >> 4) + (PRNG16 & 0x0F)) & 0x0F) + 0x08;
170 fl::u32 myclock30 =
171 (fl::u32)((clock32 * myspeedmultiplierQ5_3) >> 3) +
172 myclockoffset16;
173 u8 myunique8 = PRNG16 >> 8;
174
176
178 i16 deltabright = cbright - backgroundBrightness;
179 if (deltabright >= 32 || (!bg)) {
181 } else if (deltabright > 0) {
183 } else {
185 }
186 }
187 }
bool autoSelectBackgroundColor
CRGB computeOneTwinkle(fl::u32 ms, u8 salt) FL_NO_EXCEPT
CRGBPalette16 currentPalette
fl::u32 millis() FL_NO_EXCEPT
Universal millisecond timer - returns milliseconds since system startup.
CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2) FL_NO_EXCEPT
FASTLED_FORCE_INLINE CRGB & nscale8_video(u8 scaledown) FL_NO_EXCEPT
Scale down a RGB to N/256ths of it's current brightness using "video" dimming rules.
FASTLED_FORCE_INLINE u8 getAverageLight() const FL_NO_EXCEPT
Get the average of the R, G, and B values.