diff --git a/examples/animation/easing_functions.rs b/examples/animation/easing_functions.rs index 42ef33d6c67c7..5854e75b6a414 100644 --- a/examples/animation/easing_functions.rs +++ b/examples/animation/easing_functions.rs @@ -88,7 +88,7 @@ fn setup(mut commands: Commands) { color, ..default() }, - transform: Transform::from_xyz(110.0, 15.0, 0.0), + transform: Transform::from_xyz(SIZE_PER_FUNCTION + 5.0, 15.0, 0.0), ..default() }); p.spawn(SpriteBundle { @@ -113,6 +113,8 @@ fn setup(mut commands: Commands) { ); } +const SIZE_PER_FUNCTION: f32 = 95.0; + fn display_curves( mut gizmos: Gizmos, ease_functions: Query<(&SelectedEaseFunction, &Transform, &Children)>, @@ -121,7 +123,6 @@ fn display_curves( time: Res