Address review comment

This commit is contained in:
Patrick Walton 2024-09-18 17:47:36 -07:00
parent b6c0fbdf73
commit 10de24b6f6

View file

@ -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::<AnimatablePropertyKeyframes<FontSizeProperty>>(
@ -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 {