Skip to content

Commit

Permalink
Update animated_logo example
Browse files Browse the repository at this point in the history
  • Loading branch information
Multirious committed Mar 16, 2024
1 parent 66c61d0 commit 27e8cff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/animated_logo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {

commands.spawn(SpriteBundle {
texture: tween_text,
transform: Transform::from_xyz(350., 0., 0.),
transform: Transform::from_xyz(340., 10., 0.),
..Default::default()
});

Expand All @@ -46,19 +46,19 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
})
.collect::<Vec<_>>();

let secs = 8.;
let secs = 20.;

commands
.spawn(
SpanTweenerBundle::new(Duration::from_secs_f32(secs))
.with_repeat(Repeat::Infinitely),
)
.with_children(|c| {
snap_rotate(c, triangles[4], secs, 5, 4., ease);
snap_rotate(c, triangles[3], secs, 5, 5., ease);
snap_rotate(c, triangles[2], secs, 5, 6., ease);
snap_rotate(c, triangles[1], secs, 5, 7., ease);
snap_rotate(c, triangles[0], secs, 5, 8., ease);
snap_rotate(c, triangles[4], secs, 7, 4., ease);
snap_rotate(c, triangles[3], secs, 7, 6., ease);
snap_rotate(c, triangles[2], secs, 7, 8., ease);
snap_rotate(c, triangles[1], secs, 7, 10., ease);
snap_rotate(c, triangles[0], secs, 7, 12., ease);
});
}

Expand Down

0 comments on commit 27e8cff

Please sign in to comment.