Skip to content

add demos - #68

Merged
ppmpreetham merged 2 commits into
mainfrom
demos
Nov 25, 2026
Merged

ppmpreetham merged 2 commits into
mainfrom
demos

Conversation

@ppmpreetham

Copy link
Copy Markdown
Owner

What does this change?

Adds demos/, a small standalone cargo workspace (about 200 KB of source) of apps built with the blenderui crate. Each one runs with cargo run --release --bin <name> from demos/.

Demo What it shows
shaders three shader card components: plasma, aurora, ripple
glass backdrop-filter glass panels over a shader
pipeline a Blender-style node graph of a GitHub Actions run, drawn with Painter
editor an After Effects-style editor: shader layer, keyframe timeline, effect controls
gambit a noir chess raymarch in two GPU passes
failed Y2K error dialogs that cascade and pop up on click
velvet, phantom Persona 3- and 5-style main menus for a tech app (keyboard and mouse)
morning a pinch that folds a page into a stack of cards, using the new on_pinch

The two menus share src/menu.rs (commands and selection state) and src/canvas.rs. That file lays out a design canvas in rem so it renders crisply at any window size.

Stacked on #67: morning uses its gesture API. Merge #66 and #67 first, then retarget this PR to main.

How was it tested?

  • Every demo builds; clippy is clean with the repo's lint set.
  • Headless storyboards (software renderer, virtual clock) for failed, velvet, phantom and morning; GPU stills for the shader demos.
  • morning's fold was compared with its reference video frame by frame: the peak motion matches to within one frame, and it settles at 1.08 s against about 1.1 s in the reference.
  • Not checked live in a GPU window with real touch or a trackpad.

Checklist

  • demos/README.md lists every demo and how to run it
  • CHANGELOG.md / main README not updated; the demos aren't part of the library

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@ppmpreetham ppmpreetham mentioned this pull request Nov 25, 2026
3 of 5 tasks
@ppmpreetham ppmpreetham mentioned this pull request Nov 25, 2026
5 of 7 tasks
@ppmpreetham
ppmpreetham changed the base branch from touch-gestures to main November 25, 2026 16:44
@ppmpreetham
ppmpreetham merged commit 0a2152c into main Nov 25, 2026
33 checks passed
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