0.3.0 · matrix-goose

Draw with code.
Keep the editor you love.

PicoTurtle is a focused Lua turtle-graphics runtime powered by Raylib. Write a script, run it, and watch geometry unfold.

  • Lua graphics API
  • macOS & Windows
  • PNG export
  • Open source
A colourful geometric spiral drawn on a dark canvas.

turtle / polygons.lua

Start small

Six lines. One hexagon.

PicoTurtle supplies the canvas. Your Lua program supplies the idea.

hexagon.luaLua
local picoturtle = require "picoturtle"
local t = picoturtle.new()

t:pencolor("coral")
t:penwidth(3)

for side = 1, 6 do
  t:forward(120)
  t:right(60)
end

Bring your own editor

Version 0.3.0 deliberately leaves the old built-in IDE behind. Use any editor, then run the script with the picoturtle command. Add --no-wait when automating PNG exports.

Build and run PicoTurtle

Reference shelf

Everything needed to explore.

The detailed guides live beside the code and change with it.

A smaller PicoTurtle

Less machinery.
More drawing.

Supported nowSource builds and runtime operation on macOS and Windows.

Intentionally goneThe Qt IDE, Skia renderer, and built-in GIF assembly.

Still aheadLinux verification, richer packaging, and complex-script text shaping.