mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
Three-layer alpha compositor, colour handling, and the first scene. - internal/term: RGB with alpha blend, colour-profile detection, O(1) xterm-256 quantisation. Detection deliberately does not trust COLORTERM alone: inside a Claude Code session in Terminal.app the environment advertises truecolor while the terminal renders 256, and that is the environment asciiscapes launches into. Gates on TERM_PROGRAM, with an ASCIISCAPES_COLOR override. - internal/canvas: far/mid/near layers at alpha .30/.60/1.0, composited from the per-cell background up. Three renderers: ANSI, plain glyphs, and HTML for inspecting frames. - internal/scape: Scape interface, Activity, deterministic hash. - internal/scape/shore: night shore. Sky gradient, twinkling stars, moon, swell lines, moon-glitter path, waterline, foam speckle, sand grain. Working vs resting drives wave speed, amplitude and how far the water runs up the sand. Elements scale with canvas size. Two things learned by looking at frames rather than at code: sub-cell geometry belongs in the background colour, not in glyphs (the shoreline read as a staircase until it moved there), and a depth-ramped threshold with no per-row phase offset carves vertical wedges instead of swell. Verified: colour gate correct in all three cases, -ascii emits zero non-ASCII bytes, renders at 40x12. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019PBtf39rtmaj5ru2XNdm5i
0 lines
0 B
Plaintext
0 lines
0 B
Plaintext
The file is empty.