Skip to content

Dim dot-art highlights with a levels pre-pass#73

Merged
itamarwe merged 2 commits into
claude/profile-dot-art-sampling-uo3vkzfrom
claude/dot-art-highlight-levels
Jun 29, 2026
Merged

Dim dot-art highlights with a levels pre-pass#73
itamarwe merged 2 commits into
claude/profile-dot-art-sampling-uo3vkzfrom
claude/dot-art-highlight-levels

Conversation

@itamarwe

Copy link
Copy Markdown
Owner

The bright shirt/face highlights in the profile dot-art were packing in so many stipple dots that they read as a blown-out white blob. This adds a highlight rolloff ("levels"-style pre-pass) to the stipple generator that dims the top of the brightness range before the dots are placed, while leaving the mid-tones essentially untouched — so the highlights get fewer, slightly smaller dots and open up into texture.

What changed

  • research/profile-dots/stipple.mjs: apply b' = b * (1 - HL_DIM * b^HL_POW) (HL_DIM=0.42, HL_POW=2.5) to the brightness field before computing stipple density and dot radius. The b^HL_POW factor concentrates the dimming in the highlights.
  • Regenerated public/img/profile-dots/points.json (same 8000 dots, redistributed away from the over-dense highlights).
  • research/profile-dots/README.md: documented the pre-pass.

Verification

Rendered a before/after of the two point sets headlessly: the bright chest goes from a solid white mass to distinct, evenly-spaced dots, with the face and overall form preserved and tonality more balanced.

Note on base branch

This stacks on top of claude/profile-dot-art-sampling-uo3vkz (PR #72), since it depends on the dot-art generator and points that aren't on master yet. Base is set to that branch so the diff shows only the highlight change. It can be retargeted to master once #72 merges.

🤖 Generated with Claude Code


Generated by Claude Code

The bright shirt/face highlights were packing in so many stipple dots they
read as a blown-out white blob. Add a highlight rolloff to the generator
(b' = b * (1 - HL_DIM * b^HL_POW), HL_DIM=0.42) that dims the top of the
brightness range before stippling while leaving the mid-tones alone, so the
highlights get fewer, slightly smaller dots and open up into texture.
Regenerated public/img/profile-dots/points.json.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017TDdCdTJbUkH7ZoWDhj7AV
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
itamarwe-github-io Ready Ready Preview, Comment Jun 29, 2026 1:34pm

A bit more rolloff at the high end so the brightest chest/shirt opens up
further into even dots. Regenerated points.json.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017TDdCdTJbUkH7ZoWDhj7AV
@itamarwe itamarwe merged commit 8b31f86 into claude/profile-dot-art-sampling-uo3vkz Jun 29, 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.

2 participants