pub fn draw_rect(x1: f32, y1: f32, x2: f32, y2: f32) -> Vec<Draw> {
    use self::Draw::*;
    use self::PathOp::*;

    vec![
        Path(Move(x1, y1)),
        Path(Line(x1, y2)),
        Path(Line(x2, y2)),
        Path(Line(x2, y1)),
        Path(Line(x1, y1)),
        Path(ClosePath)
    ]
}
///
/// Returns the drawing commands for a rectangle
///
Returns the drawing commands for a rectangle
Returns the drawing commands for a rectangle
pub fn draw_rect(x1: f32, y1: f32, x2: f32, y2: f32) -> Vec<Draw> {
    use self::Draw::*;
    use self::PathOp::*;
    vec![
        Path(Move(x1, y1)),
        Path(Line(x1, y2)),
        Path(Line(x2, y2)),
        Path(Line(x2, y1)),
        Path(Line(x1, y1)),
        Path(ClosePath)
    ]
}
pub fn draw_rect ( x1 : f32 , y1 : f32 , x2 : f32 , y2 : f32 ) -> Vec < Draw > { use self :: Draw :: * ; use self :: PathOp :: * ; vec ! [ Path ( Move ( x1 y1 ) ) Path ( Line ( x1 y2 ) ) Path ( Line ( x2 y2 ) ) Path ( Line ( x2 y1 ) ) Path ( Line ( x1 y1 ) ) Path ( ClosePath ) ] }
Returns the drawing commands for a rectangle
Returns the drawing commands for a rectangle
x1
f32
y1
f32
x2
f32
y2
f32