mMUI / playground
scene.rsRust DSL subset
Auto-runs · Ctrl / ⌘ + Enter
Live canvas
640 × 480
Starting engine…
Loading WebAssemblyCPU / WASM
Supported subset

block(w, h) · text("hello") · icon("home") · spacer() · row![…] · col![…] · stack![…]

Shape .radius(24.) .pill() .union(Surface) · .cut(block(80., 80.)) .keep(block(80., 80.))

Layout .w(320.) .h(200.) .gap(8.) .pad(16.) · .flex(1.) .center() .offset(10., 0.) .inside(4.) .bend(0.2)

Text .text_size(24.) .weight(700.) · icons .icon_fill(1.) .grade(200.)

Paint .fill(Primary) .stroke(Ink).stroke_width(2.) .shell(8., Raised) · Gradient::vertical(Primary, Secondary) · Color::oklch(0.75, 0.02, 230.)

One expression with numeric literals and named palette roles. No variables, closures, loops or arbitrary Rust.