footile 0.7.0

A 2D vector graphics library
Documentation
// round.rs
use footile::{JoinStyle, Path2D, Plotter};
use pix::matte::Matte8;
use pix::Raster;

mod png;

fn main() -> Result<(), std::io::Error> {
    let path = Path2D::default()
        .relative()
        .pen_width(40.0)
        .move_to(10.0, 60.0)
        .line_to(50.0, 0.0)
        .line_to(0.0, -50.0)
        .finish();
    let mut p = Plotter::new(Raster::with_clear(100, 100));
    p.set_join(JoinStyle::Round);
    png::write_matte(p.stroke(&path, Matte8::new(255)), "./round.png")
}