pub fn new<T>(shape: T) -> Self
    where
        T: Into<Shape>,
    {
        let s: Shape = shape.into();
        let pos = s.pos;
        let mut d = Drawing::empty().with_canvas_size(pos.size());
        d.position = pos.pos;
        d.add(s);
        d
    }
/// Construct a drawing with a shape.
Construct a drawing with a shape.
Construct a drawing with a shape .
pub fn new<T>(shape: T) -> Self
    where
        T: Into<Shape>,
    {
        let s: Shape = shape.into();
        let pos = s.pos;
        let mut d = Drawing::empty().with_canvas_size(pos.size());
        d.position = pos.pos;
        d.add(s);
        d
    }
pub fn new < T > ( shape : T ) -> Self where T : Into < Shape > , { let s : Shape = shape . into ( ) ; let pos = s . pos ; let mut d = Drawing :: empty ( ) . with_canvas_size ( pos . size ( ) ) ; d . position = pos . pos ; d . add ( s ) ; d }
Construct a drawing with a shape.
Construct a drawing with a shape .
shape
T
shape
T