fn new_particle() -> Particle {
    Particle { 
        position: Point2 {
            x: rand::gen_range(0., WIDTH as f32),
            y: rand::gen_range(0., HEIGHT as f32),
        },
        size: 1.,
        velocity: Vec2::new(rand::gen_range(-1., 1.), rand::gen_range(-1., 1.)),
    }
}
/// generates a new random particle.
generates a new random particle.
generates a new random particle .
fn new_particle() -> Particle {
    Particle { 
        position: Point2 {
            x: rand::gen_range(0., WIDTH as f32),
            y: rand::gen_range(0., HEIGHT as f32),
        },
        size: 1.,
        velocity: Vec2::new(rand::gen_range(-1., 1.), rand::gen_range(-1., 1.)),
    }
}
fn new_particle ( ) -> Particle { Particle { position : Point2 { x : rand :: gen_range ( 0. , WIDTH as f32 ) , y : rand :: gen_range ( 0. , HEIGHT as f32 ) , } , size : 1. , velocity : Vec2 :: new ( rand :: gen_range ( - 1. , 1. ) , rand :: gen_range ( - 1. , 1. ) ) , } }
generates a new random particle.
generates a new random particle .