pub fn draw_screen_transition(
kind: TransitionKind,
coverage: f32,
color: Color,
focus: Vec2,
)Expand description
Draws a full-screen scene transition at coverage (0 clear … 1 covered)
in color. Wipes have a soft leading edge; the iris closes on focus
(screen units). Use ScreenTransition::kind(motion) so reduced motion fades.
use ferravex_play::tween::TransitionKind;
use ferravex_render::{Color, vec2, ui::kit};
kit::draw_screen_transition(TransitionKind::Iris, 0.5, Color::new(0., 0., 0., 1.), vec2(640., 360.));