Skip to main content

particle

Function particle 

Source
pub fn particle<'a, Theme: Catalog>(
    born: Instant,
    speed: f32,
) -> Particle<'a, Theme>
Expand description

Creates a Particle born at born that travels speed world units per second, with the theme’s default class.

born is an iced::time::Instant (web_time on the web), the same clock iced::window::frames reports.