add multi turtle support

This commit is contained in:
2025-10-17 08:59:29 +02:00
parent bbb9348497
commit 3509060390
19 changed files with 624 additions and 628 deletions
+2
View File
@@ -13,11 +13,13 @@ fn draw(turtle: &mut TurtlePlan) {
turtle.set_speed(999);
turtle.circle_left(100.0, 540.0, 72); // partial circle to the left
turtle.begin_fill();
turtle.forward(150.0);
turtle.set_speed(100);
turtle.set_pen_color(BLUE);
turtle.circle_right(50.0, 270.0, 72); // partial circle to the right
// Set animation speed
turtle.end_fill();
turtle.set_speed(20);
turtle.forward(150.0);
turtle.circle_left(50.0, 180.0, 12);