Files
osui/examples/velocity.rs
T
2025-11-02 10:26:15 +01:00

21 lines
387 B
Rust

use osui::prelude::*;
fn main() -> std::io::Result<()> {
let screen = Screen::new();
app().draw(&screen);
screen.run()
}
pub fn app() -> Rsx {
rsx! {
@Style { foreground: None, background: Background::Outline(0xff0000) };
@Transform::new().padding(1, 1);
VelocityHandler {
@Velocity(200, 100);
"test"
}
}
}