Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Turtle-Graphics-Library

A FireMonkey (FMX) turtle graphics library for Delphi inspired by Python’s turtle. Includes a Turtle screen, drawing commands (forward/turn/circle/fill), animation control (tracer/update), shape registry (polygon/image), and input events for interactive demos.

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Delphi Turtle Graphics Library (Turtle.pas)

A lightweight turtle graphics library for Delphi (FireMonkey / FMX), inspired by Python’s turtle module.

It provides a TTurtleScreen you attach to a TPaintBox, and a TTurtle that executes familiar commands like forward, left/right, circle, begin_fill/end_fill, pencolor, pensize, plus simple animation controls.

Features

  • Easy-to-use API: forward, backward, left/right, goto, home, circle, dot, stamp, write
  • Pen + fill support: pencolor, pensize, fillcolor, begin_fill, end_fill
  • Animation control: tracer(N, delay), update(), no_animation(...)
  • Shape system: built-in shapes + register_shape(...) for polygons or images
  • Basic input events: click and key handlers (FMX-style)