now svg lines, circles and fills are exported

This commit is contained in:
2025-10-23 16:15:02 +02:00
parent 6e6aa8b27e
commit e6bc79ea7b
4 changed files with 138 additions and 34 deletions
+21 -1
View File
@@ -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::{