import turtle
t = turtle.Turtle()
t.speed(0)
t.pensize(3)
colors = ["red", "orange", "gold", "green", "blue", "purple"]
for i in range(36):
t.pencolor(colors[i % 6])
t.circle(80)
t.left(10)
turtle.done()
Press Run to see the result
Write turtle code, press Run and watch it draw. Free, no sign-up, nothing to install, and it draws just like real Python.
Each one is the full code. It starts drawing as the page opens, and its numbers can be changed with a click.
Cherry blossom treeA recursive tree, new every time
Christmas treeLights, a star, snow and a greeting
Animated Christmas treeLights that blink, snow that falls
Particle Christmas treeA spinning tree made of 200 dots
FireworksAn animation, frame by frame
HeartTwo half circles make a heart
SnowflakeThe Koch curve, folded finer and finer
Rainbow spiralChange one angle, get a new picture
RosePetals turned layer by layer
SunflowerSeeds in golden-angle spirals
Birthday cakeSet the candles to their age
SnowmanThree snowballs and a hat
Yin yangThree half circles make the S
ClockIt tells the time
SpirographThree numbers, endless patterns
Sierpinski triangleA triangle full of holes
Pythagoras treeA tree made of squares
Butterfly curveA butterfly from one formulaNo. The code runs in your browser, on a phone or a computer. To run it on your own computer later, Python 3 comes with turtle.
Yes. Our turtle follows CPython's own turtle.py and is tested against it stroke by stroke: lines, fills, dots, text and stamps land in the same places, in the same order.
The usual ones: forward, circle, begin_fill, dot, write, stamp, color, tracer and update, ontimer animations and more. Keyboard and mouse events (onkey, onclick) do not work yet.
✓ Drawn stroke for stroke the way real Python's turtle draws it