Repository navigation
feat(render): add animated_postfx renderer - #74
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 19 minutes and 56 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (22)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Meta-renderer that draws an inner renderer normally, then applies a
tachyonfx shader-like post-process over the occupied area for the
duration of the runtime's ANIMATION_WINDOW. Inner renderer is picked via
`inner = "..."` (falls back to the shape's default), effect via
`effect = "..."`, duration via `duration_ms` (default 800).
Shipped effects: fade_in, fade_out, dissolve, coalesce, sweep_in{,_right,
_down,_up}, slide_in{,_right,_down,_up}, hsl_shift. All variants touch
only the foreground (or the cell character, for dissolve/coalesce) so
the terminal's default background shows through untouched — tachyonfx's
`fade_from`/`sweep_in`/`slide_in` paint the faded_color onto the bg,
producing a solid black rectangle on any non-default-black theme, so
sweep/slide use `fade_from_fg` + `SweepPattern` instead to produce the
same directional reveal without that artefact.
`Renderer::render` grows a `registry: &Registry` parameter so
animated_postfx can resolve its inner renderer by name. All existing
renderers accept the new param as `_registry` — no behavioural change.
Part of #61.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Adds a hero row with `splashboard` dissolving in, plus two rows of text_ascii demos covering fade_in, coalesce, sweep_in_down, slide_in_down, and hsl_shift so the dogfood splash exercises every visual family the new renderer supports. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Mirrors what CI actually runs. Agents were missing the fmt step from the Testing section and occasionally pushed unformatted code. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
f8802b9 to
b639830
Compare
Summary
animated_postfxmeta-renderer that layers tachyonfx shader-like effects (fade / dissolve / coalesce / sweep / slide / hsl_shift) on top of any existing renderer. Inner renderer is picked viainner = "..."(falls back to the shape's default).Renderer::rendergrows aregistry: &Registryparameter so animated_postfx can resolve its inner by name; all other renderers accept it as_registryand behave identically.fade_from/sweep_in/slide_inpaintfaded_coloronto the bg which produces a solid black rectangle on any non-default-black theme; sweep/slide are reimplemented asfade_from_fg+SweepPatternto avoid that artefact.splashboarddissolve) plus two rows covering fade_in, coalesce, sweep_in_down, slide_in_down, and hsl_shift.Ticks the
animated_postfxbox in #61.Config example:
Test plan
cargo test(330 passing, 5 new inanimated_postfx)cargo clippy --all-targets -- -D warningscleancargo build --releaseduration_ms, terminal background stays intact🤖 Generated with Claude Code