Skip to main content

draw_particles

Function draw_particles 

Source
pub fn draw_particles(
    frame: &mut Frame<'_>,
    biscuit: Rect,
    particles: &[Particle],
)
Expand description

Render auto/click/golden/confetti particles. Positions are resolved against the CURRENT biscuit rect from each particle’s fractional anchor, so they travel with the biscuit on zoom/resize. area is the visual clip (same as the resolution target).