Skip to content

Commit dc3d463

Browse files
netmindzblazoncek
authored andcommitted
Merge pull request #4428 from blazoncek/waterfall-fix
FX: Waterfall, Matripix & Dissolve fix
1 parent f593d40 commit dc3d463

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wled00/FX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ uint16_t dissolve(uint32_t color) {
612612
for (int j = 0; j <= SEGLEN / 15; j++) {
613613
if (random8() <= SEGMENT.intensity) {
614614
for (size_t times = 0; times < 10; times++) { //attempt to spawn a new pixel 10 times
615-
unsigned i = random16(SEGLEN);
615+
unsigned i = hw_random16(SEGLEN);
616616
if (SEGENV.aux0) { //dissolve to primary/palette
617617
if (pixels[i] == SEGCOLOR(1)) {
618618
pixels[i] = color == SEGCOLOR(0) ? SEGMENT.color_from_palette(i, true, PALETTE_SOLID_WRAP, 0) : color;

0 commit comments

Comments
 (0)