Skip to content

Bug in blending styles #5206

Closed
Closed

Description

@DedeHai

What happened?

When any blending style other than "Fade" is used changing the brightness first turns all pixels black and then blends in with the selected style, using a fade for the brightness.

To Reproduce Bug

Select any blending style other than "Fade", change the brightness.

Expected Behavior

Ideally, the original segment should stay at the current brightness and the new segment should blend in with the new brightness. But at least it should not turn all pixels black and then blend the segment in with a fading brightness. This gets more tricky if multiple parameters change: for exampel a preset that changes the solid FX from one color to another and also changing brightness at the same time.

Install Method

Binary from WLED.me

What version of WLED?

nightly build

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

-

Anything else?

a simple solution would be to keep the "Fade" for brightness and just apply the blending in the same way as its done for an FX change or a color change i.e. simply dont turn the old segment to black.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. coderabbitai commented on Dec 18, 2025

    @coderabbitai
    Contributor

    📝 CodeRabbit Plan Mode

    Generate an implementation plan and prompts that you can use with your favorite coding agent.

    • Create Plan
    Examples

    🔗 Similar Issues

    Related Issues

    🔗 Related PRs

    #4712 - Fix Segment::fade_out for 2d expansion [merged]
    #4737 - Bugfix: convert cctBlend value back to "%" for UI [merged]
    #4841 - bugfix to prevent "infinite" loop in palette blend [merged]
    #4878 - Fix operation of length 1 strips, such as PWM LEDs [merged]
    #4917 - Bugfix for FX: Tri Fade [merged]

    👤 Suggested Assignees

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord or schedule a call!

  2. added a commit that references this issue on Dec 19, 2025
  3. blazoncek commented on Dec 19, 2025

    @blazoncek
    Contributor

    The fix (if transition style is to be ignored during global brightness change) is rather simple. See my commit.

  4. added a commit that references this issue on Dec 19, 2025
  5. added
    fixed in source
    on Dec 19, 2025
  6. DedeHai commented on Dec 19, 2025

    @DedeHai
    CollaboratorAuthor

    thanks, this did the trick. now transitions work as intended and brightness is fading at the same time.

  7. DedeHai commented on Dec 19, 2025

    @DedeHai
    CollaboratorAuthor

    can you please also add the same fix for 2D?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfixed in source

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions