Python Turtle Size

how to change turtle size in python

When I first started working with Python Turtle graphics, controlling the size of both the turtle and its drawings was one of my biggest challenges. Understanding how to properly adjust these elements can make a huge difference in your visual output. In this article, I’ll share practical techniques to control Python Turtle size, from adjusting … Read more >>

Python Turtle Font: Change Font, Size and Style (+ Fonts List)

Python Turtle font guide: a chart of twelve fonts written with turtle.write()

To change the font in Python Turtle, pass a font tuple to write(): pen.write(“Hello”, font=(“Arial”, 24, “bold”)). The tuple holds the font family, the size and the style. This guide shows every part of that tuple with a screenshot, how to list the fonts you can use on your computer, and how to align, measure, … Read more >>

Create a Python Turtle Square

python turtle square

Recently, I was working on a Python project with my students where I needed to demonstrate basic graphics programming. Python’s Turtle module is perfect for this; it’s simple, visual, and great for beginners. In this article, I will show you multiple ways to draw a square using Python’s Turtle module. Let me walk you through … Read more >>

Python Turtle Art: Create Beautiful Graphics

python art code

Recently, I was working on a project where I needed to create some visual elements for a Python workshop. The goal was to engage beginners with something creative and fun. That’s when I revisited the Turtle module, a simple yet useful graphics library built into Python. In this article, I’ll share some of my favorite … Read more >>

Python Turtle Write Function

python turtle write text position

Recently, I was working on a Python project where I needed to add text to my turtle graphics. The issue is, many beginners don’t realize how useful the turtle.write() function can be used for adding labels, scores, and instructions to their graphics. In this article, I’ll cover several simple ways you can use the write … Read more >>

Draw a Circle in Python Turtle: Arcs, Fills and Polygons

Python turtle circle: the turtle graphics window showing a blue circle drawn with a radius of 100

To draw a circle in Python turtle, call circle() with a radius: The surprise is where it lands. It’s drawn above the turtle rather than around it, and the next section shows why. Every screenshot here is a real turtle window on Python 3.12.5. Drawing a circle in Python turtle One call does it. The … Read more >>

Python Turtle Speed: Animation Speed

turtle speed python

Recently, I was working on a Python Turtle graphics project where I needed to control how fast the animations were running. The issue is, getting the right speed can make a huge difference in how your turtle graphics appear to users. In this article, I’ll cover everything you need to know about controlling the speed … Read more >>

Python Turtle Colors: Full Colors List, RGB, Hex and colormode

Python Turtle colors: chart of 147 named colours plus hex, RGB, colormode, random colours and gradients

Python Turtle accepts colours in three forms: a name such as “tomato”, a hex code such as “#1e90ff”, or an RGB tuple such as (46, 139, 87). Set the line colour with pencolor(), the fill with fillcolor(), both at once with color(), and the window with screen.bgcolor(). Below is the full chart of the 147 … Read more >>

How to Add an Image to Python Turtle (GIF, PNG and Background)

Attach an image to Python Turtle: rocket image shapes rotated in eight directions

To attach an image to a Python Turtle, register the image as a shape with screen.register_shape(“rocket.gif”) and then call t.shape(“rocket.gif”). Up to Python 3.13 that shortcut only accepts GIF files; PNG works too, but through tkinter.PhotoImage (shown below), and Python 3.14 adds PNG to register_shape() directly. This guide also covers background images, resizing, making images … Read more >>

Build Snake Game in Python Using Turtle Module

turtle snake

Recently, I was helping my nephew learn Python programming, and I wanted to create something that would keep him engaged and excited. What better way than creating a classic Snake game? Using Python’s Turtle module, we can easily build this nostalgic game that many of us played on our old Nokia phones. In this tutorial, … Read more >>