Skip to content

Flash guard and black threshold - #39

Merged
mathieuletyrant merged 1 commit into
mainfrom
feat/flash-guard-black-threshold
Nov 15, 2026
Merged

mathieuletyrant merged 1 commit into
mainfrom
feat/flash-guard-black-threshold

Conversation

@mathieuletyrant

Copy link
Copy Markdown
Owner

Closes #28. Its first part (dominant color per cell) already shipped with version 2 Tracks in 0.20.0; this adds the two render-side settings.

  • Flash guard: a Track finds its Flashes when it loads (up to 150 ms, at least twice as bright as the frame before and ≥ 0.05 brighter), each with the gain that brings it back to the brighter of the frames before and after it. The gain is applied per frame, before centered smoothing, as strongly as the Look says (50% by default). A bright scene that lasts is no Flash.
  • Black threshold / Black falloff: under the threshold (luminance, linear light, after exposure) colors fade out as (l / threshold)^falloff, with no step at the threshold. Off by default; Minimum brightness wins if both are set.
  • New sliders in the Look view; the frame test renders through the same path, so they apply there too. Glossary: Flash, Black threshold.

Tests: a 2-frame white flash is capped while a lasting white scene isn't; a color under the threshold fades out with no step. cargo test (40 passed), pnpm --filter web typecheck and build.


Generated by Claude Code

Two Look settings from #28 (its first part, the dominant color per cell,
came with version 2 Tracks):

- Flash guard: a Track finds its Flashes when it loads (a few frames, up to
  150 ms, at least twice as bright as the frame before), each with the gain
  that brings it back to the level around it. The Look applies that gain as
  strongly as it says, frame by frame, before smoothing. 50% by default.
- Black threshold and Black falloff: under the threshold, colors fade out
  along a curve instead of showing dim and muddy. Off by default.

Closes #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDWJeHn6fgxQ346FAdH
@mathieuletyrant
mathieuletyrant merged commit 55a9e8c into main Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(look): richer colors — dominant color per cell, flash guard, soft black threshold

2 participants