bug fix and better rendering

This commit is contained in:
2025-07-01 13:02:52 -05:00
parent 41abba18b0
commit 5c2b260e14
4 changed files with 30 additions and 18 deletions
+4 -1
View File
@@ -2,6 +2,7 @@ use minifb::{Window, WindowOptions};
use osgui::{
elements::Rect,
extensions::velocity::{Velocity, VelocityExtension},
style::Transform,
Screen,
};
@@ -20,7 +21,9 @@ fn main() {
let mut app = Screen::new(window);
app.extension(VelocityExtension);
app.draw(Rect).component(Velocity(100, 0));
app.draw(Rect)
.component(Transform::new().dimensions(40, 40))
.component(Velocity(500, 0));
app.run().unwrap();
}