Skip to content

feat: add tiled contrast diagnostics#42

Merged
sjquant merged 7 commits into
mainfrom
gauss-alphabetized-the-spoons-ai9
Jul 5, 2026
Merged

feat: add tiled contrast diagnostics#42
sjquant merged 7 commits into
mainfrom
gauss-alphabetized-the-spoons-ai9

Conversation

@sjquant

@sjquant sjquant commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Why

Low-contrast text diagnostics should fail on busy backgrounds when rendered text pixels are unreadable, even if the whole text region averages to a readable color.

Changes

  • Add an internal reusable tiled contrast measurement helper.
  • Use the worst text-pixel tile as the low-contrast diagnostic's contrast value while preserving threshold and adding structured tile metadata.
  • Avoid scoring empty whitespace inside text bounds and keep rich-text colors tied to the pixels where each run renders.
  • Cover mixed backgrounds, whitespace gaps, readable split-color rich text, default text color, and JSON lint output.

@sjquant sjquant force-pushed the gauss-alphabetized-the-spoons-ai9 branch from 5b901d8 to dd4bd9c Compare July 5, 2026 08:43
@sjquant sjquant self-assigned this Jul 5, 2026
@sjquant sjquant force-pushed the gauss-alphabetized-the-spoons-ai9 branch from e342c87 to b26ff78 Compare July 5, 2026 09:22
@sjquant sjquant merged commit 5c52433 into main Jul 5, 2026
3 checks 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.

1 participant