142 {
143
144
145
146
147 uint16_t PRNG16 = 11337;
148 uint32_t clock32 = millis();
149
155 if (bglight > 64) {
157 } else if (bglight > 16) {
159 } else {
161 }
162 }
163
165
166 for (uint16_t i = 0; i <
mNumLeds; i++) {
167 PRNG16 = (uint16_t)(PRNG16 * 2053) + 1384;
168 uint16_t myclockoffset16 = PRNG16;
169 PRNG16 = (uint16_t)(PRNG16 * 2053) + 1384;
170 uint8_t myspeedmultiplierQ5_3 =
171 ((((PRNG16 & 0xFF) >> 4) + (PRNG16 & 0x0F)) & 0x0F) + 0x08;
172 uint32_t myclock30 =
173 (uint32_t)((clock32 * myspeedmultiplierQ5_3) >> 3) +
174 myclockoffset16;
175 uint8_t myunique8 = PRNG16 >> 8;
176
178
180 int16_t deltabright = cbright - backgroundBrightness;
181 if (deltabright >= 32 || (!bg)) {
183 } else if (deltabright > 0) {
185 } else {
187 }
188 }
189 }
bool autoSelectBackgroundColor
CRGB computeOneTwinkle(uint32_t ms, uint8_t salt)
CRGBPalette16 currentPalette
CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2)
Computes a new color blended some fraction of the way between two other colors.
FASTLED_FORCE_INLINE CRGB & nscale8_video(uint8_t scaledown)
Scale down a RGB to N/256ths of it's current brightness using "video" dimming rules.
FASTLED_FORCE_INLINE uint8_t getAverageLight() const
Get the average of the R, G, and B values.