mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
His ruling, after his own line-spacing test came back "no, it didnt": the hairline cannot be removed inside half blocks, only not drawn. He picked "pixel perfect, no exceptions", then two measurements narrowed it and he ruled again -- "leave the disc split, do the rest", then "leave the shoreline split". So this is the ramp, which is where it showed worst: whole rows of the sky and the sea, 432 cells a frame at his geometry, which is why it read as a rule ACROSS the frame rather than as an edge. Measured on a real 143x27 frame, half-block cells before -> after: tod 0.05 401 -> 18, 0.30 853 -> 40, 0.50 464 -> 43, 0.865 558 -> 23. About 94% gone; the rest is the disc and the shoreline he kept. Ghostty frames are byte-identical. The cost is smaller than the option text I gave him. Measured against the true ramp at half-row resolution across twelve hours, the mean CIE76 error moves between -0.48 and +1.28 and is BETTER collapsed at four of them, and the distinct-tone count down a sky column is unchanged at every hour. Only 2-4 of the sky's twelve rows are split at all and a split cell's two halves are adjacent entries on the same path, so the mid tone it falls back to is usually one of them. What does change is where a band edge sits: a 40-luma step at noon can move by half a row. Three traps, each proven rather than argued. The flag is bare with no initialiser, because `go test` runs with TERM_PROGRAM=Apple_Terminal in this project and a self-initialising flag would collapse the suite here and split it in CI. It gets its own detector rather than reusing DetectSplit, because XSCAPES_SPLIT=upper on Terminal.app still wants no split cells and =lower on Ghostty still wants them. And every HTML writer is pinned to split in the one seam all four entry points funnel through: without it, `go run . -site site` from Terminal.app would bake the collapsed sky into the published page and the same command from Ghostty would bake the split one. term.LowerHalf is deliberately NOT cleared there -- headless Chrome at the clips' own CSS has the same U+2580 gap Terminal.app has, so clearing it would put a wrong-coloured 2px band above all 500 split cells in the sky clip. Also fixed: three of this repo's own tests were blind to the glyph that ships. Every test runs at LowerHalf's zero value, which is the upper half block; his machine draws the lower one. smoothing_test read a lower-half cell as a FLAT background, so the gradient-accuracy test measured the wrong thing on the only machine the defect appears on, and moon_shape_test would have counted a Terminal.app disc as having no half cells at all. Not delivered, and it cannot be: "zero hairlines anywhere" would kill the companion, which IS block glyphs -- 38 full blocks and 18 partial ones a frame. The ruling lands on backgrounds. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UJvgity4qhHtTGojUkFivG