0Pricing
Coding for Kids · Lesson

A Colorful Pattern

Make turtle art.

Make Turtle Art! 🎨🐢

Today we become real artists! 🖼️ We'll combine colors, shapes, and loops to make a beautiful PATTERN.

A pattern is something that repeats in a cool way. Let's create masterpieces! 🤩

import turtle

t = turtle.Turtle()
t.speed(0)
t.circle(50)

Spinning Squares 🟦🌀

Let's draw a square, turn a little, and repeat! The squares spin into a flower pattern. 💠

We draw a square (4 sides) inside a loop that turns each time.

import turtle

t = turtle.Turtle()
t.speed(0)
for i in range(12):
    for s in range(4):
        t.forward(80)
        t.right(90)
    t.right(30)

All lessons in this course

  1. Turtle Colors
  2. Filling Shapes
  3. Many Shapes
  4. A Colorful Pattern
← Back to Coding for Kids