use clipper2::*;
use helpers::draw_paths;
use macroquad::prelude::*;
mod helpers;
#[macroquad::main("Inflate")]
async fn main() {
let path: Paths = vec![(2.0, 2.0), (6.0, 2.0), (6.0, 10.0), (2.0, 6.0)].into();
let _result = inflate(path.clone(), 1.0, JoinType::Round, EndType::Polygon, 0.0);
let _result = simplify(_result, 0.01, false);
let result = path
.inflate(1.0, JoinType::Round, EndType::Polygon, 0.0)
.simplify(0.01, false);
loop {
clear_background(BLACK);
draw_paths(&path, GRAY);
draw_paths(&result, SKYBLUE);
next_frame().await
}
}