Skip to content

heyliceeee/TurtleChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🐢 Turtle Graphics – Python Drawing Project

This project uses Python’s turtle module to create geometric drawings, colorful patterns, random walks, and spirographs.
It’s an excellent way to practice logic, functions, loops, and graphical manipulation in Python.


🎨 Features

The script includes several functions that draw different types of shapes:

✔️ Random Colors (RGB)

  • Generates random colors using colormode(255)
  • Each drawing can have a different color

✔️ Square

  • Draws a square with 4 movements and 90° turns

✔️ Dashed Line

  • A line made of alternating drawn and blank segments

✔️ Geometric Shapes

Automatically draws:

  • Triangle
  • Square
  • Pentagon
  • Hexagon
  • Heptagon
  • Octagon
  • Nonagon
  • Decagon

Each shape uses a random color.

✔️ Random Walk

  • Random movements in 4 directions (N, S, E, W)
  • Random colors
  • Adjustable thickness
  • Fast drawing speed

✔️ Spirograph

  • Draws rotated circles with a defined gap
  • Random colors
  • Hypnotic visual effect

🧩 Project Structure

project/
│
├── main.py
└── README.md

main.py

Contains:

  • Initial turtle configuration
  • Drawing functions
  • Selection of which figure to draw (in this case, the spirograph)

About

Python project using Turtle to draw geometric shapes, random walks, and spirographs with random colors.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages