Skip to content

Centre the transparency checkerboard vertically - #328

Merged
smelfungus merged 1 commit into
masterfrom
fix/checkerboard-vertical-centering
Sep 2, 2026
Merged

Centre the transparency checkerboard vertically#328
smelfungus merged 1 commit into
masterfrom
fix/checkerboard-vertical-centering

Conversation

@smelfungus

Copy link
Copy Markdown
Member

The checkerboard is an ImageShader tiling from the Canvas origin, so it started flush with the track's top edge and let the bottom edge fall wherever the height ran out. At a 16dp track over 6dp cells that is a full 6dp row against a 4dp stub, on a pattern only three rows tall, and the mismatch reads as a mistake rather than a texture.

The fill is now shifted up by half the overshoot, so the remainder is split evenly and both edges show the same sliver: measured on the recorded golden, the alpha track's rows go from 16/16/10 pixels to 13/15/12. The fill is grown by the overshoot so it still covers the track, and the existing clip trims it.

Only the vertical axis is anchored. Horizontally a track spans dozens of cells, so a partial cell at one end is invisible, and leaving the horizontal phase alone keeps the pattern continuous across the gap the thumb cuts in the track — anchoring each segment separately would make it jump.

The checkerboard is an ImageShader tiling from the Canvas origin, so it started flush with the track's top edge and let the bottom edge fall wherever the height ran out. At a 16dp track over 6dp cells that is a full 6dp row against a 4dp stub, on a pattern only three rows tall, and the mismatch reads as a mistake rather than a texture.

The fill is now shifted up by half the overshoot, so the remainder is split evenly and both edges show the same sliver: measured on the recorded golden, the alpha track's rows go from 16/16/10 pixels to 13/15/12. The fill is grown by the overshoot so it still covers the track, and the existing clip trims it.

Only the vertical axis is anchored. Horizontally a track spans dozens of cells, so a partial cell at one end is invisible, and leaving the horizontal phase alone keeps the pattern continuous across the gap the thumb cuts in the track — anchoring each segment separately would make it jump.
@smelfungus smelfungus self-assigned this Sep 2, 2026
@smelfungus
smelfungus merged commit 3506653 into master Sep 2, 2026
2 checks passed
@smelfungus
smelfungus deleted the fix/checkerboard-vertical-centering branch September 2, 2026 02:47
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