larzturtle
Turtle graphics that draw to SVG.
The classic learn-to-code turtle, but headless: familiar commands (forward/right/penup/color/circle) render to SVG or ASCII with no display - great for teaching, notebooks, servers and the web. Makes loops and functions visible and fun.
larzscript pkg install turtle
What you get
- Familiar turtle commands
- Renders to SVG or ASCII (no display)
- circle/polygon helpers, chaining
- Works headless anywhere
Try it
import "turtle" as turtle let t = turtle.new() turtle.forward(t, 50) turtle.turn(t, 90) turtle.forward(t, 50) print(round(t["x"], 2), round(t["y"], 2)) print(len(t["lines"]))
Output
50 50 2
Why it's in the Larz Stack
larzturtle is a real Larzscript package (larzscript pkg install turtle) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.