Files
turtle/turtle-lib/examples/hello_turtle.rs
T
2025-10-17 08:59:29 +02:00

15 lines
282 B
Rust

//! Minimal turtle example - just 10 lines!
//!
//! This is the simplest possible turtle program using the macro.
use turtle_lib::*;
#[turtle_main]
fn hello() {
turtle.set_pen_color(BLUE);
for _ in 0..4 {
turtle.forward(100.0);
turtle.right(90.0);
}
}