svg text size and orientation

This commit is contained in:
Dietrich
2026-07-20 13:39:42 +02:00
parent 5e0e0e5be3
commit bc925ffe26
5 changed files with 133 additions and 8 deletions
+6 -3
View File
@@ -9,6 +9,7 @@ async fn main() {
let mut plan = create_turtle_plan();
plan.forward(100.0)
.right(90.0)
.set_speed(950.0)
.forward(100.0)
.set_pen_color(macroquad::color::GRAY)
.set_pen_width(8.0)
@@ -17,9 +18,11 @@ async fn main() {
.forward(100.0)
.right(90.0)
.forward(200.0)
.end_fill()
.circle_left(200., 180., 24)
.circle_left(90.0, 180.0, 36)
.end_fill();
for size in 0..9 {
plan.circle_left(200., 20., 6).write_text("a", size * 10);
}
plan.circle_left(90.0, 180.0, 36)
.begin_fill()
.circle_left(90.0, 180.0, 36)
.circle_left(45.0, 180.0, 26)