pizarra 0.8.2

The backend for a simple vector hand-drawing application
Documentation
use std::rc::Rc;

use crate::point::Point;
use crate::color::Color;

/// The draw command as returned by the shape: adds the color
#[derive(Debug, PartialEq, Clone)]
pub enum DrawCommand {
    Line {
        color: Color,
        line: Rc<Vec<Point>>,
        thickness: f64,
    },
    Circle {
        center: Point,
        radius: f64,
        color: Color,
        thickness: f64,
    },
    Ellipse {
        bbox: [Point; 2],
        thickness: f64,
        color: Color,
    },
}