Category: Turtle

Hilbert curve
Posted in Fractals Intermediate Turtle

Drawing Fractals with Lindenmayer Systems

Lindenmayer systems, or L-systems, provide a very powerful way to construct fractals. Lindenmayer used L-systems to describe the behaviour of… read more Drawing Fractals with Lindenmayer Systems

Posted in Beginner Turtle

A Fake Circle made of Straight Lines

Inspired by this post on Reddit, I wrote this little script to do the same thing. The circle is an… read more A Fake Circle made of Straight Lines

Posted in Beginner Fractals Turtle

Tweetable Python Code Golf

Code Golf is the amusement of writing as short as possible a program to perform a given task. So for… read more Tweetable Python Code Golf

Posted in Basic Turtle

Random Walk

A colourful random walk. The basic idea is very simple: choose a random heading in the range 0:360 degrees. Step… read more Random Walk

Posted in Beginner Turtle

Turtle Star

A very simple Turtle program. Turtle can draw intricate shapes using programs that repeat simple moves. Turtle graphics is a… read more Turtle Star

Posted in Basic Turtle

Sierpinski Triangle, drawn by a Turtle

This is a classic fractal drawn with a recursion algorithm and Turtle graphics. The Sierpinski Triangle’s sides are bisected and… read more Sierpinski Triangle, drawn by a Turtle

Posted in Beginner Turtle

Square Spiral

This is a very simple introduction to Turtle graphics. The turtle starts in the middle of the window, moves forward… read more Square Spiral