fn boundary(x: f32) -> f32 {
  let perlin = Perlin::new();
  let seed = 15.; // 10

  let y_base = (x / 600.).sin();
  let noise = perlin.get([x as f64 / 400., y_base as f64, seed]) as f32 * 1.8;
  y_base * noise * 200.
}
// calculates the y boundary between yellow and blue
calculates the y boundary between yellow and blue
calculates the y boundary between yellow and blue
fn boundary(x: f32) -> f32 {
  let perlin = Perlin::new();
  let seed = 15.; // 10
  let y_base = (x / 600.).sin();
  let noise = perlin.get([x as f64 / 400., y_base as f64, seed]) as f32 * 1.8;
  y_base * noise * 200.
}
fn boundary ( x : f32 ) -> f32 { let perlin = Perlin :: new ( ) ; let seed = 15. ; // 10 let y_base = ( x / 600. ) . sin ( ) ; let noise = perlin . get ( [ x as f64 / 400. , y_base as f64 , seed ] ) as f32 * 1.8 ; y_base * noise * 200. }
calculates the y boundary between yellow and blue
calculates the y boundary between yellow and blue
x
f32