adjust examples to y-axis-flip

This commit is contained in:
2025-10-19 14:19:17 +02:00
parent 64bd8ee530
commit 346a4fd720
5 changed files with 121 additions and 9 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ async fn main() {
// Draw triangular hole in the middle
println!("Drawing triangular hole...");
turtle.go_to(vec2(200.0, 120.0));
turtle.go_to(vec2(200.0, -120.0));
turtle.pen_down(); // Start new contour for hole
for _ in 0..3 {
@@ -48,7 +48,7 @@ async fn main() {
// Draw circular hole (top-left) using circle_left
println!("Drawing circular hole (top-left) with circle_left...");
turtle.go_to(vec2(100.0, 100.0));
turtle.go_to(vec2(100.0, -100.0));
turtle.pen_down(); // Start new contour for hole
turtle.circle_left(30.0, 360.0, 36); // radius=30, full circle, 36 steps
println!("Closing circle contour with pen_up");
@@ -56,7 +56,7 @@ async fn main() {
// Draw circular hole (bottom-right) using circle_right
println!("Drawing circular hole (bottom-right) with circle_right...");
turtle.go_to(vec2(280.0, 280.0));
turtle.go_to(vec2(280.0, -280.0));
turtle.pen_down(); // Start new contour for hole
turtle.circle_right(40.0, 360.0, 36); // radius=40, full circle, 36 steps
println!("Closing circle contour with pen_up");