import turtle
screen = turtle.Screen()
screen.setup(400, 400)
screen.bgcolor('skyblue')
pen = turtle.Turtle()
pen.hideturtle()
pen.speed(0)
screen.mainloop()
Project 4 — Step 1 of 5
⭐ Step 1 — Choose a background
➡️ Pick a background color for your face.
✏️ What to type
In the editor, set up turtle and pick a background color. Some ideas:
'skyblue''lightyellow''mistyrose''#222222'(dark grey, for a night scene)'#ffe4b5'(peachy)
import turtle screen = turtle.Screen() screen.setup(400, 400) # Set screen.bgcolor() to a color you like pen = turtle.Turtle() pen.hideturtle() pen.speed(0) screen.mainloop()
Tap ▶ Run. You should see a square in your chosen color. 🎨
🔍 Tip
Turtle knows lots of color names: 'red', 'orange', 'pink',
'lavender', 'crimson', 'turquoise'. For exact colors, use
the '#RRGGBB' hex code form like in Project 1.
Adapted from Raspberry Pi Foundation — Make a Face under CC BY-SA 4.0.