Skip to content

fix(color): make target-white overrides affect managed rendering #4498

Closed

Description

@zackees

Context

#4156 R7 asks the rendering white and OKLCh mapping space to share a defined reference. The D65 mapping-space part is implemented and tested, but ChannelOptions::setTargetWhite() accepts and stores a valid white while current rendering does not consume it: src/fl/channels/options.h stores it, src/fl/channels/channel.h exposes it, and src/fl/gfx/pipeline.cpp.hpp processes through a pipeline whose white is built without this override. The regression in #4317 records that the setter is inert. This is an accepted setting with no visible effect.

Proposal

Thread the channel's selected target white into pipeline construction and gamut mapping. Define its precedence against source profile white and measured emitter white, and recompute the brightest feasible neutral for the selected white. If a requested white is outside the emitter gamut, return an explicit binding/result status rather than silently ignoring it. Preserve D65 as the OKLCh computation space with symmetric adaptation of target and gamut.

Acceptance criteria

  • Capture RED evidence that two distinct accepted target whites currently yield the same wire output for a profile and source where the selected neutral should differ; implement, then make it GREEN.
  • Test D65 and warm targets, a neutral ramp, out-of-gamut target white, source/profile rebinding, and RGB allocation. Physical RGBW/RGBWW managed allocation is tracked separately in feat(color): connect profiled RGBW/RGBWW emitters to managed output #4515; do not count legacy delegation as managed coverage. Compare emitted XYZ/chromaticity to the selected neutral axis and P5 reference.
  • Document the distinction among source white, selected rendering white, physical all-emitter-full output, and maximum neutral luminance; keep no-override behavior compatible.
  • Verify cache invalidation and profile lifetime when the target white changes.

Decisions

Related issues

Activity

  1. moved this from Triage to Done in FastLED Trackeron Sep 23, 2026
  2. added a commit that references this issue on Sep 23, 2026
    333bce0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions