turtle 1.0.0-alpha.2

Turtle Graphics in Rust
Documentation
use radians::Radians;
use {Point, Speed, Color};

#[derive(Debug, Clone)]
pub struct Pen {
    pub enabled: bool,
    pub thickness: f64,
    pub color: Color,
}

#[derive(Debug, Clone)]
pub struct TurtleState {
    pub position: Point,
    pub heading: Radians,
    pub speed: Speed,
    pub visible: bool,
}

#[derive(Debug, Clone)]
pub struct Path {
    pub start: Point,
    pub end: Point,
    pub pen: Pen,
}

#[derive(Debug, Clone)]
pub struct Polygon {
    pub vertices: Vec<Point>,
    pub fill_color: Color,
}

#[derive(Debug, Clone)]
pub struct DrawingState {
    pub pen: Pen,
    pub fill_color: Color,
    pub background: Color,
}