Skip to content

feat(render): add animated_postfx renderer - #74

Merged
unhappychoice merged 3 commits into
mainfrom
feat/animated-postfx-renderer
Apr 22, 2026
Merged

unhappychoice merged 3 commits into
mainfrom
feat/animated-postfx-renderer

Conversation

@unhappychoice

Copy link
Copy Markdown
Owner

Summary

  • New animated_postfx meta-renderer that layers tachyonfx shader-like effects (fade / dissolve / coalesce / sweep / slide / hsl_shift) on top of any existing renderer. Inner renderer is picked via inner = "..." (falls back to the shape's default).
  • Renderer::render grows a registry: &Registry parameter so animated_postfx can resolve its inner by name; all other renderers accept it as _registry and behave identically.
  • All shipped effects touch only the foreground (or the cell character for dissolve/coalesce) so the terminal's default background shows through — tachyonfx's built-in fade_from / sweep_in / slide_in paint faded_color onto the bg which produces a solid black rectangle on any non-default-black theme; sweep/slide are reimplemented as fade_from_fg + SweepPattern to avoid that artefact.
  • Dogfood config gains a showcase row (hero splashboard dissolve) plus two rows covering fade_in, coalesce, sweep_in_down, slide_in_down, and hsl_shift.

Ticks the animated_postfx box in #61.

Config example:

render = { type = "animated_postfx", inner = "text_ascii", effect = "dissolve", duration_ms = 1200, pixel_size = "quadrant", align = "center" }

Test plan

  • cargo test (330 passing, 5 new in animated_postfx)
  • cargo clippy --all-targets -- -D warnings clean
  • cargo build --release
  • Visual check in the dogfood splash — effects play inside the 2s ANIMATION_WINDOW, freeze to static inner render after duration_ms, terminal background stays intact

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@unhappychoice has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 19 minutes and 56 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 84e09bc9-9dc3-4429-a428-fa0e812e6584

📥 Commits

Reviewing files that changed from the base of the PR and between 2bd89e0 and b639830.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (22)
  • .splashboard/config.toml
  • AGENTS.md
  • Cargo.toml
  • src/render/animated_postfx.rs
  • src/render/animated_typewriter.rs
  • src/render/chart_bar.rs
  • src/render/chart_line.rs
  • src/render/chart_pie.rs
  • src/render/chart_scatter.rs
  • src/render/chart_sparkline.rs
  • src/render/gauge_circle.rs
  • src/render/gauge_line.rs
  • src/render/grid_calendar.rs
  • src/render/grid_heatmap.rs
  • src/render/grid_table.rs
  • src/render/list_plain.rs
  • src/render/list_timeline.rs
  • src/render/media_image.rs
  • src/render/mod.rs
  • src/render/status_badge.rs
  • src/render/text_ascii.rs
  • src/render/text_plain.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/animated-postfx-renderer

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

unhappychoice and others added 3 commits April 23, 2026 01:12
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]>
@unhappychoice
unhappychoice force-pushed the feat/animated-postfx-renderer branch from f8802b9 to b639830 Compare April 22, 2026 16:13
@unhappychoice
unhappychoice merged commit c7b5cf7 into main Apr 22, 2026
5 checks passed
@unhappychoice
unhappychoice deleted the feat/animated-postfx-renderer branch April 22, 2026 16:54
@unhappychoice unhappychoice mentioned this pull request Apr 22, 2026
28 of 73 tasks
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