From 10de24b6f64f79267d53e48138e415f4e2db84b8 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 18 Sep 2024 17:47:36 -0700 Subject: [PATCH] Address review comment --- examples/animation/animated_ui.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/animation/animated_ui.rs b/examples/animation/animated_ui.rs index f37b3a1ce9..0fee526d0a 100644 --- a/examples/animation/animated_ui.rs +++ b/examples/animation/animated_ui.rs @@ -76,6 +76,9 @@ impl AnimationInfo { let mut animation_clip = AnimationClip::default(); // Create a curve that animates font size. + // + // `VariableCurve::linear` is just a convenience constructor; it's also + // possible to initialize the structure manually. animation_clip.add_curve_to_target( animation_target_id, VariableCurve::linear::>( @@ -84,8 +87,8 @@ impl AnimationInfo { ), ); - // Create a curve that animates font color. - // Note that this should have the same time duration as the previous curve. + // Create a curve that animates font color. Note that this should have + // the same time duration as the previous curve. animation_clip.add_curve_to_target( animation_target_id, VariableCurve {