Repository navigation
Conversation
Rewrites #29 for ttfx 0.5: palette and field bands apply to shared effect configs and to both engines, the wasm Session wraps fx, and oracle cases cover the new flags. Co-authored-by: Christoffer Hallas <github@christofferhallas.com>
|
Ready to merge from our side.
|
|
Reviewed at 8b27dcf. The CLI half ( What ran, on a disposable Arch worker (never on the machine holding credentials):
Wasm
CI never builds the wasm target, which is how all three got through. A CI job that builds the cdylib and steps one Worth deciding (judgement calls, not defects)
Checked and fine: the Second opinion: Codex at medium effort and muse-spark-1.3 (via pi, thinking high) read the diff. Codex independently traced all three wasm defects (they were also in my own review, so take that partly as agreement, and independence is not guaranteed). It also added that Next: the wasm defects are for the author. Whether to split the PR, and whether |
|
Following up on the review above with a way forward: please split this into two PRs.
Maintainer edits are turned off on this branch, so we can't push either part ourselves. Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium and muse-spark-1.3 (high). |
Rewrites omacom/ttfx#29 for ttfx 0.5 so
--paletteand--bandswork onsrc/fxinstead of only the original engine.Why
#29's palette/bands only changed the old engine. After #44/#47 every CLI run goes through fx, so those flags would be ignored and draw the wrong colours. This branch starts from current
omacom/masterand implements the flags on both engines.What landed
--palette HEX[,HEX...]replaces each effect's default colours. Effect-specific colour flags given on the command line keep their values.--bandsrequires--paletteand colours the input word in five field stripes (crest/hover/lit/mid/dim at 4-3-4-3-5). 19-line input stays that ratio; other heights use a Hamilton split. Existing-colour handling isalwaysso every effect settles on those stripes.ch.fg/CF_PREEXISTING.Sessionwraps fx (palette, optional terminal background, bands) so WTE / omacom.org / the screensaver can share the fast engine.tools/fx/cases/decrypt.txtandwipe.txt.This supersedes #29. The old PR cannot rebase cleanly onto fx and should close in favour of this one.
Fork mirror (same branch): https://github.com/csfh/ttfx/pull/2
Test plan
cargo test --lib— 57 passed, including bands/palettecargo test --tests— integration goldens passedttfx --helpshows--paletteand--bands--bandswithout--paletteexits 1echo OMARCHY | ttfx --palette '#daecc6,#bbdd97,#9ece6a,#678549,#39482e' --bands decrypt— all five palette RGBs appear; fx vs original parity-dump matchestools/fx/oracle.sh decrypt quick— 420 passed, 0 failedtools/fx/oracle.sh wipe quick— 628 passed, 0 failed