File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ pub fn color_material_to(to: Color) -> impl Fn(&mut Color) -> ColorMaterial {
101101 }
102102}
103103
104- /// Constructor for delta [`ColorMaterial`]
104+ /// Constructor for delta [`ColorMaterial`](crate::interpolate::ColorMaterial)
105105pub fn color_material_delta_to ( to : Color ) -> impl Fn ( & mut Color ) -> ColorMaterial {
106106 move |state| {
107107 let start = * state;
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ pub fn translation_delta_by(by: Vec3) -> impl Fn(&mut Vec3) -> Translation {
6060 move |state| {
6161 let start = * state;
6262 let end = * state + by;
63+ * state += by;
6364 Translation { start, end, delta : true }
6465 }
6566}
@@ -244,7 +245,7 @@ pub fn angle_z_by(by: f32) -> impl Fn(&mut f32) -> AngleZ {
244245 }
245246}
246247
247- /// Constructor for [`AngleZDelta `] that's relative to previous value
248+ /// Constructor for [`AngleZ `] that's relative to previous value
248249/// Since this is a delta tween, it can happen with other ongoing tweens of that type
249250pub fn angle_z_delta_by ( by : f32 ) -> impl Fn ( & mut f32 ) -> AngleZ {
250251 move |state| {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub fn background_color_to(
4444 }
4545}
4646
47- /// Constructor for delta [`BackgroundColor`]
47+ /// Constructor for delta [`BackgroundColor`](crate::interpolate::BackgroundColor)
4848pub fn background_color_delta_to (
4949 to : Color ,
5050) -> impl Fn ( & mut Color ) -> BackgroundColor {
@@ -97,7 +97,7 @@ pub fn border_color_to(to: Color) -> impl Fn(&mut Color) -> BorderColor {
9797 }
9898}
9999
100- /// Constructor for [`BorderColor`] that's relative to previous value using currying.
100+ /// Constructor for [`BorderColor`](crate::interpolate::BorderColor) that's relative to previous value using currying.
101101pub fn border_color_delta_to ( to : Color ) -> impl Fn ( & mut Color ) -> BorderColor {
102102 move |state| {
103103 let start = * state;
You can’t perform that action at this time.
0 commit comments