mirror of
https://github.com/wled/WLED.git
synced 2025-07-28 13:16:34 +00:00
Merge pull request #4428 from blazoncek/waterfall-fix
FX: Waterfall, Matripix & Dissolve fix
This commit is contained in:
parent
f593d404cb
commit
dc3d463925
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "wled",
|
"name": "wled",
|
||||||
"version": "0.15.0",
|
"version": "0.15.1.beta1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "wled",
|
"name": "wled",
|
||||||
"version": "0.15.0",
|
"version": "0.15.1.beta1",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"clean-css": "^5.3.3",
|
"clean-css": "^5.3.3",
|
||||||
|
@ -612,7 +612,7 @@ uint16_t dissolve(uint32_t color) {
|
|||||||
for (int j = 0; j <= SEGLEN / 15; j++) {
|
for (int j = 0; j <= SEGLEN / 15; j++) {
|
||||||
if (random8() <= SEGMENT.intensity) {
|
if (random8() <= SEGMENT.intensity) {
|
||||||
for (size_t times = 0; times < 10; times++) { //attempt to spawn a new pixel 10 times
|
for (size_t times = 0; times < 10; times++) { //attempt to spawn a new pixel 10 times
|
||||||
unsigned i = random16(SEGLEN);
|
unsigned i = hw_random16(SEGLEN);
|
||||||
if (SEGENV.aux0) { //dissolve to primary/palette
|
if (SEGENV.aux0) { //dissolve to primary/palette
|
||||||
if (pixels[i] == SEGCOLOR(1)) {
|
if (pixels[i] == SEGCOLOR(1)) {
|
||||||
pixels[i] = color == SEGCOLOR(0) ? SEGMENT.color_from_palette(i, true, PALETTE_SOLID_WRAP, 0) : color;
|
pixels[i] = color == SEGCOLOR(0) ? SEGMENT.color_from_palette(i, true, PALETTE_SOLID_WRAP, 0) : color;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user