Velocity element

This commit is contained in:
2025-11-02 10:26:15 +01:00
parent 63ed7b8da4
commit f5d1b42db4
5 changed files with 186 additions and 66 deletions
+20
View File
@@ -0,0 +1,20 @@
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"
}
}
}