pub struct TurtleSvg { /* private fields */ }Expand description
Composing SVG with turtle graphics operations with a cursor
Implementations§
Source§impl TurtleSvg
impl TurtleSvg
pub fn new() -> Self
Sourcepub fn drawing_mut(&mut self) -> &mut Drawing
pub fn drawing_mut(&mut self) -> &mut Drawing
Reutnr a mutable referece of Drawing
Sourcepub fn set_pen_color<C: Into<Color>>(&mut self, color: C)
pub fn set_pen_color<C: Into<Color>>(&mut self, color: C)
Change pen line color
Sourcepub fn set_pen_size(&mut self, thickness: f64)
pub fn set_pen_size(&mut self, thickness: f64)
Change the pen line size
Sourcepub fn set_heading<A: Into<Angle>>(&mut self, angle: A)
pub fn set_heading<A: Into<Angle>>(&mut self, angle: A)
Change the current angle
Sourcepub fn set_background_color<C: Into<Color>>(&mut self, color: C)
pub fn set_background_color<C: Into<Color>>(&mut self, color: C)
Change the background color
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurtleSvg
impl RefUnwindSafe for TurtleSvg
impl Send for TurtleSvg
impl Sync for TurtleSvg
impl Unpin for TurtleSvg
impl UnwindSafe for TurtleSvg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more