From 663f943af38012cd8c7c35f0b2a944756af6d1f6 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 2 Mar 2024 00:35:00 +0100 Subject: [PATCH] oops --- hui-examples/examples/ui_test3.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hui-examples/examples/ui_test3.rs b/hui-examples/examples/ui_test3.rs index 1692a34..aff88fb 100644 --- a/hui-examples/examples/ui_test3.rs +++ b/hui-examples/examples/ui_test3.rs @@ -53,11 +53,11 @@ ui_main!( .with_font(FontHandle::default()) .add_child(ui); }) + .transform() + .scale(Vec2::splat(elapsed_sec.sin() * 0.1 + 1.)) + .rotate(elapsed_sec * PI / 4.) .add_child(ui); }) - .transform() - .scale(Vec2::splat(elapsed_sec.sin() * 0.1 + 1.)) - .rotate(elapsed_sec * PI / 4.) .add_root(ui, size); } );