Skip to content

inconsistent slider in the 2d matrix effect #4659

Open
@RiWi-creator

Description

@RiWi-creator

Wled Nightly release 2025-04-20
2D matrix effect:
The scroll bar from the trail length is inverted.
0=maximum length trail
and
255=minimum length trail

In the file 'FX.cpp'
CODE:
At line 5387:
uint8_t fade = map(SEGMENT.custom1, 0, 255, 50, 250); // equals trail size

SOLUTION:
Change to:
uint8_t fade = map(255-SEGMENT.custom1, 0, 255, 50, 250); // equals trail size

Thank you.
Keep up the good work.
greetings,
RiWi-creator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions