fn yellow_blobs(win: &Rect, draw: &Draw) {
  for _i in 0..30000 {
    let hue = nextf(25., 53.) / 360.;
    let sat = nextf(0.3, 0.7);
    let alpha = nextf(0.08, 0.12);
    let width = nextf(7.0, 15.0);
    let height = nextf(7.0, 15.0);
    let x = nextf(win.x.start, win.x.end);
    let y = nextf(win.y.end + 10., boundary(x) - 25.);
    let lightness = lerp(0.235, 0.88, y / win.y.magnitude() * 1.75);
    Blob::new()
      .x_y(x, y)
      .width(width)
      .height(height)
      .rotate_rad(nextf(0., PI * 2.))
      .noise_scale(nextf(0.64, 0.8))
      .hsla(hue, sat, lightness, alpha)
      .fuzziness(nextf(0., 5.))
      .draw(&draw);
  }
}
// draw a bunch of yellow blobs in the top left corner
draw a bunch of yellow blobs in the top left corner
draw a bunch of yellow blobs in the top left corner
fn yellow_blobs(win: &Rect, draw: &Draw) {
  for _i in 0..30000 {
    let hue = nextf(25., 53.) / 360.;
    let sat = nextf(0.3, 0.7);
    let alpha = nextf(0.08, 0.12);
    let width = nextf(7.0, 15.0);
    let height = nextf(7.0, 15.0);
    let x = nextf(win.x.start, win.x.end);
    let y = nextf(win.y.end + 10., boundary(x) - 25.);
    let lightness = lerp(0.235, 0.88, y / win.y.magnitude() * 1.75);
    Blob::new()
      .x_y(x, y)
      .width(width)
      .height(height)
      .rotate_rad(nextf(0., PI * 2.))
      .noise_scale(nextf(0.64, 0.8))
      .hsla(hue, sat, lightness, alpha)
      .fuzziness(nextf(0., 5.))
      .draw(&draw);
  }
}
fn yellow_blobs ( win : & Rect , draw : & Draw ) { for _i in 0 .. 30000 { let hue = nextf ( 25. , 53. ) / 360. ; let sat = nextf ( 0.3 , 0.7 ) ; let alpha = nextf ( 0.08 , 0.12 ) ; let width = nextf ( 7.0 , 15.0 ) ; let height = nextf ( 7.0 , 15.0 ) ; let x = nextf ( win . x . start , win . x . end ) ; let y = nextf ( win . y . end + 10. , boundary ( x ) - 25. ) ; let lightness = lerp ( 0.235 , 0.88 , y / win . y . magnitude ( ) * 1.75 ) ; Blob :: new ( ) . x_y ( x , y ) . width ( width ) . height ( height ) . rotate_rad ( nextf ( 0. , PI * 2. ) ) . noise_scale ( nextf ( 0.64 , 0.8 ) ) . hsla ( hue , sat , lightness , alpha ) . fuzziness ( nextf ( 0. , 5. ) ) . draw ( & draw ) ; } }
draw a bunch of yellow blobs in the top left corner
draw a bunch of yellow blobs in the top left corner
win
&Rect
draw
&Draw