This commit is contained in:
griffi-gh 2024-03-02 00:35:00 +01:00
parent b46db55f1b
commit 663f943af3

View file

@ -53,11 +53,11 @@ ui_main!(
.with_font(FontHandle::default()) .with_font(FontHandle::default())
.add_child(ui); .add_child(ui);
}) })
.add_child(ui);
})
.transform() .transform()
.scale(Vec2::splat(elapsed_sec.sin() * 0.1 + 1.)) .scale(Vec2::splat(elapsed_sec.sin() * 0.1 + 1.))
.rotate(elapsed_sec * PI / 4.) .rotate(elapsed_sec * PI / 4.)
.add_child(ui);
})
.add_root(ui, size); .add_root(ui, size);
} }
); );