Skip to content

jackChallis/turtle-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turtle Pattern Generator - Inspired by Brilliant's Creative Coding Course

This project implements and extends the geometric patterns from Brilliant.org's Creative Coding Course. Using Python's turtle graphics, it creates a variety of geometric patterns demonstrating concepts from basic drawing to complex mathematical positioning.

🎨 Examples

figure19 figure8

🎓 Course Connection

All base patterns are derived from Brilliant's Creative Coding course exercises. The project:

  • Recreates the original course patterns
  • Extends concepts with additional variations
  • Demonstrates Python graphics programming principles

⚙️ Project Structure

turtle-patterns/
├── src/
│   └── turtle_patterns.py
├── examples/
│   └── *.eps
├── README.md
└── requirements.txt

🔧 Requirements

  • Python 3.8+
  • Turtle graphics (built-in Python module)
  • No external dependencies required

🚀 Usage

  1. Clone the repository:
git clone https://github.com/jackChallis/turtle-patterns.git
cd turtle-patterns
  1. Run the pattern generator:
python3 src/turtle_patterns.py

🎯 Pattern Categories

Original Course Patterns

  1. Basic Geometric Shapes

    • Nested shapes with varying rotations
    • Concentric circles with color progression
    • Regular polygons with mathematical spacing
  2. Color Patterns

    • Alternating color sequences
    • RGB value progressions
    • Color intensity variations
  3. Movement-Based Patterns

    • Conditional positioning
    • Mathematical movement calculations
    • Position-based color changes
  4. Conditional Patterns

    • Even/odd positioning
    • Modulo-based coloring
    • Count-based rotations

Extended Patterns

  1. Random Generation

    • Random position circles
    • Random RGB color combinations
    • Size variations
  2. Complex Movement

    • Multiple variable updates
    • Combined rotations and translations
    • Mathematical progressions

📂 Output Files

The program generates multiple .eps files:

  • figures1-5: Basic geometric patterns
  • figures6-10: Rotating and alternating patterns
  • figures11-16: Movement and modulo patterns
  • figures17-20: Complex movement patterns
  • figures21-24: Color progression and random patterns

🛠️ Development

Project demonstrates:

  • Turtle graphics manipulation
  • Color theory in programming
  • Mathematical pattern generation
  • Conditional logic in visual design
  • Random number application

🤝 Contributing

Feel free to:

  • Fork the repository
  • Submit pull requests
  • Suggest additional patterns
  • Report issues

✨ Acknowledgments

  • Brilliant.org for their excellent Creative Coding course that inspired this project
  • Original pattern concepts from Brilliant's course exercises
  • Extended with additional variations and combinations

📝 License

This project is open-source, but please note that the original pattern concepts come from Brilliant's Creative Coding course.

🔗 Social

Created by jackChallis


Note: This project is a learning implementation inspired by Brilliant's Creative Coding course exercises. Check out Brilliant.org for the original course and many other excellent learning resources.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages