← Back to Blog

"Python Turtle Online: Master Colors and Create Amazing Art

"2026-11-10

If you are searching for python turtle online, you probably want to draw and experiment without downloading heavy software. Python turtle is one of the best ways to learn programming because the results are instantly visual.

But the real magic begins when you start using colors. In this guide, we will look at how to use turtle color python commands to turn simple shapes into beautiful python turtle art.

How to Change Colors

The turtle module supports hundreds of named colors. You can use standard colors like "red", "blue", "cyan", or "hotpink".

You can change the pen color (what it draws) and the background color using the color() and bgcolor() functions.

Your First Colorful Code

Here is a program that draws a colorful star on a dark background. Notice how we set the background to black to make the colors pop.

Python
from turtle import * bgcolor("black") color("gold") pensize(3) speed(0) for i in range(5): forward(200) right(144) done()

Creating a Color Palette

If you want multiple colors in one drawing, you can create a list of colors and loop through them. This is how you create the colorful geometric patterns you see online.

Python
from turtle import * bgcolor("black") speed(0) colors = ["hotpink", "orange", "yellow", "lime", "cyan", "violet"] for i in range(36): color(colors[i % 6]) circle(80) right(10) done()

See What You Can Build

With just loops and colors, you can create incredibly complex python turtle art. Check out this Mandala design built using just a few lines of code.

Mandala python turtle art

This design uses loops and color changes to create a stunning, symmetrical piece of art.

View the Full Code

Run Python Turtle Online Now

You do not need to install anything. You can run all of these commands right now in your browser by visiting our interactive lesson.

Take Python Turtle Everywhere

If you want to practice Python Turtle and master Python on your phone, we highly recommend Python Play. It features a built-in Turtle graphics playground and 100 interactive levels to test your coding skills.

Python Play: Coding & Quiz App

Learn Python, solve 100 challenges, and run real Turtle graphics code directly on your phone. No setup required.

Get it on Google Play