fn generate_drip_lines(model: &Model, win: &Rect) -> Vec<Point2> {
  (0..model.n_drips)
    .map(|n| {
      pt2(
        win.x.lerp(n as f32 / model.n_drips as f32) + random_range(-2.0, 2.0),
        win.y.end + 10.,
      )
    })
    .collect()
}
// create "evenly" spaced starting points for our drips
create "evenly" spaced starting points for our drips
create " evenly " spaced starting points for our drips
fn generate_drip_lines(model: &Model, win: &Rect) -> Vec<Point2> {
  (0..model.n_drips)
    .map(|n| {
      pt2(
        win.x.lerp(n as f32 / model.n_drips as f32) + random_range(-2.0, 2.0),
        win.y.end + 10.,
      )
    })
    .collect()
}
fn generate_drip_lines ( model : & Model , win : & Rect ) -> Vec < Point2 > { ( 0 .. model . n_drips ) . map ( | n | { pt2 ( win . x . lerp ( n as f32 / model . n_drips as f32 ) + random_range ( - 2.0 , 2.0 ) , win . y . end + 10. , ) } ) . collect ( ) }
create "evenly" spaced starting points for our drips
create " evenly " spaced starting points for our drips
model
&Model
win
&Rect