Draw with Code
beginner30 XP

Colors, Circles & Snowflakes

Fill shapes with color and draw honeycombs, planets and snowflakes.

Colors, Circles & Snowflakes 🎨

Let's make our drawings shine!

🪐 Draw a planet

t.circle(50) draws a circle. Wrap it in begin_fill() and end_fill() to color it in:

Python
import turtle
t = turtle.Turtle()

t.color("orange")
t.begin_fill()
t.circle(60)
t.end_fill()

🐝 A honeybee hexagon

Bees build their honeycomb out of hexagons: shapes with 6 sides. It's a super strong shape that uses very little wax! For 6 sides, turn 360 ÷ 6 = 60 degrees each time:

Python
import turtle
t = turtle.Turtle()
t.color("goldenrod")

t.begin_fill()
for i in range(6):
    t.forward(60)
    t.left(60)
t.end_fill()
💡

🧠 Shape rule: to draw any shape, turn 360 divided by the number of sides.

❄️ A snowflake

Real snowflakes almost always have 6 arms. One loop can draw them all:

Python
import turtle
t = turtle.Turtle()
t.color("deepskyblue")

for arm in range(6):
    t.forward(80)
    t.backward(80)
    t.left(60)

🌈 Colors to try

"red", "blue", "green", "purple", "gold", "pink", "deepskyblue", "forestgreen"

Challenge yourself: change the numbers and colors and make your own galaxy. Then press Share to show someone your drawing!

⌨️

Type it yourself

Don't just read it — type the example from above into the box, press Run ▶, and watch what happens. Typing it yourself is how it really sticks! Stuck? Tap Show example.

Python · Playground
Output
Press ▶ Run to see your code come to life…

Quick check

01/5
Which line draws a circle?