bevy_tweening icon indicating copy to clipboard operation
bevy_tweening copied to clipboard

Add `SpriteAlphaLens`

Open johanhelsing opened this issue 7 months ago • 1 comments

Sometimes it's convenient not to overwrite the color of a sprite. If they have conflicting animations or are controlled by other systems for instance.

Makes it a lot simpler to create simple "fade out" animations:

                    .insert(Animator::new(Tween::new(
                        Linear,
                        Duration::from_secs_f32(0.3),
                        SpriteAlphaLens { start: 1., end: 0. },
                    )))

johanhelsing avatar Nov 27 '23 07:11 johanhelsing