now svg lines, circles and fills are exported
This commit is contained in:
@@ -9,11 +9,31 @@ async fn main() {
|
||||
plan.forward(100.0)
|
||||
.right(90.0)
|
||||
.forward(100.0)
|
||||
.circle_left(50.0, 90.0, 4)
|
||||
.set_pen_color(macroquad::color::GRAY)
|
||||
.circle_right(50.0, 90.0, 4)
|
||||
.begin_fill()
|
||||
.forward(100.0)
|
||||
.right(90.0)
|
||||
.forward(200.0)
|
||||
.end_fill()
|
||||
.circle_left(200., 180., 24)
|
||||
.circle_left(90.0, 180.0, 36)
|
||||
.begin_fill()
|
||||
.circle_left(90.0, 180.0, 36)
|
||||
.circle_left(45.0, 180.0, 26)
|
||||
.circle_right(45.0, 180.0, 26)
|
||||
.pen_up()
|
||||
.right(90.0)
|
||||
.forward(37.0)
|
||||
.left(90.0)
|
||||
.pen_down()
|
||||
.circle_right(8.0, 360.0, 12)
|
||||
.pen_up()
|
||||
.right(90.0)
|
||||
.forward(90.0)
|
||||
.left(90.0)
|
||||
.pen_down()
|
||||
.circle_right(8.0, 360.0, 12)
|
||||
.end_fill();
|
||||
let mut app = TurtleApp::new().with_commands(plan.build());
|
||||
use macroquad::{
|
||||
|
||||
Reference in New Issue
Block a user