OpUI
OpUI is a small Rust library for building stylish realtime 2D visuals.
Current building blocks:
VisualAppto run a scene loopSceneas the trait for custom visualsPalettewith reusable color setslayersfor composable visual stacksprimitiveswith shared helpers likedraw_gradient_background,draw_glow_circle,draw_polyline, andParticleFieldSceneStackas a cleaner alias for layered scene compositionliquid_glass(),aurora_bloom(), andneon_flow()as built-in layered hero presets
Run the examples
Example API
use *;
use ;
let scene = new
.gradient
.mist
.glass_waves
.liquid_orbs
.scanlines
.vignette;
new.run.await;
Publish to crates.io
- Create an account on crates.io and generate an API token.
- Log in locally:
- Replace the placeholder GitHub URLs in Cargo.toml with your real repository.
- Dry-run the package:
- Publish:
If you want the README screenshots and docs.rs page to look strong, the next useful step is adding a real GitHub repo and a couple of rendered images/GIFs to the repository.
What is ready now
- animated backgrounds
- glow circles and layered lighting
- particle fields
- composable layer stacks
- chainable scene builder API
- mouse-driven motion
- reusable presets
- live showcase demo for layered hero scenes
Good next steps
- shader materials
- camera and layered compositing
- export frames or GIF/video
- audio-reactive visuals
- a Rust/WASM renderer that replaces the temporary browser canvas layer