https://github.com/khouloudhaddad/python_drawing
Turtle Python drawing exercices
https://github.com/khouloudhaddad/python_drawing
python-turtle-graphics python3
Last synced: 4 months ago
JSON representation
Turtle Python drawing exercices
- Host: GitHub
- URL: https://github.com/khouloudhaddad/python_drawing
- Owner: khouloudhaddad
- License: mit
- Created: 2024-10-15T12:01:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-15T17:50:17.000Z (over 1 year ago)
- Last Synced: 2025-02-27T15:40:52.484Z (about 1 year ago)
- Topics: python-turtle-graphics, python3
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🐢 Python Turtle Graphics Project
Welcome to the Python Turtle Graphics project! This project demonstrates the power of Python's turtle module to create interactive, graphical shapes and designs using simple code.
## 🎯 Project Overview
In this project, we use Python's turtle graphics library to draw various shapes, patterns, and designs. The turtle module is an excellent way to visualize programming concepts and introduce creative coding in Python. This project is perfect for beginners to learn basic Python concepts like loops, functions, and conditionals in a fun and interactive way.
## ✨ Features
- Draw geometric shapes such as squares, triangles, circles, etc.
- Create colorful designs and patterns with randomization
- Use loops and recursion to generate complex fractal-like patterns
- User interaction to control drawing (keyboard or mouse)
- Save the generated images
## 🚀 Getting Started
### Prerequisites
Ensure you have Python installed on your system. You can download it from the official Python website.
```
# Check Python version
python --version
```
### Installation
1- Clone the repository:
```
git clone https://github.com/your-username/python-turtle-project.git
```
2- Navigate to the project directory:
```
cd python-turtle-project
```
3- Install any required packages (if any):
```
pip install -r requirements.txt
```
**Note:** The turtle module comes pre-installed with Python, so no extra installation is necessary unless you add more dependencies.
### Running the Project
To run the Turtle graphics code, simply execute the Python script:
```
python turtle_art.py
```
Watch as the turtle creates beautiful patterns on the screen!
## 🛠️ Customization
Feel free to experiment with the code. Modify the shapes, colors, and patterns by adjusting the parameters in the functions. You can even add new features like user inputs, dynamic shapes, or animations.
## 🤝 Contributing
Contributions are welcome! If you'd like to contribute, feel free to open an issue or submit a pull request.
1- Fork the project.
2- Create a new branch (git checkout -b feature-branch).
3- Commit your changes (git commit -m 'Add feature').
4- Push to the branch (git push origin feature-branch).
5- Open a Pull Request.
## 📜 License
This project is licensed under the MIT License - see the LICENSE file for details.