extern crate noise; use noise::{utils::*, Curve, Perlin}; mod utils; fn main() { let perlin = Perlin::default(); let curve = Curve::new(perlin) .add_control_point(-2.0, -2.0) .add_control_point(-1.0, -1.25) .add_control_point(0.0, -0.75) .add_control_point(0.5, -0.25) .add_control_point(0.625, 0.875) .add_control_point(0.75, 1.0) .add_control_point(2.0, 1.25); utils::write_example_to_file(&PlaneMapBuilder::new(curve).build(), "curve.png"); }