Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laxman-rathod/python-turtle
This is a simple Python project that uses the Turtle graphics library to display a "Happy Holi" text. The project is perfect for beginners who want to learn how to use the Turtle graphics library in Python.
https://github.com/laxman-rathod/python-turtle
Last synced: about 1 month ago
JSON representation
This is a simple Python project that uses the Turtle graphics library to display a "Happy Holi" text. The project is perfect for beginners who want to learn how to use the Turtle graphics library in Python.
- Host: GitHub
- URL: https://github.com/laxman-rathod/python-turtle
- Owner: laxman-rathod
- License: mit
- Created: 2024-06-23T10:19:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-23T10:39:12.000Z (7 months ago)
- Last Synced: 2024-06-23T11:32:55.999Z (7 months ago)
- Language: Python
- Homepage: https://python-turtle.vercel.app
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Happy Holi Turtle Graphics
This is a simple Python project that uses the Turtle graphics library to display a "Happy Holi" text. The project is perfect for beginners who want to learn how to use the Turtle graphics library in Python.
## Snapshots
![Screenshot 2024-06-23 160657](https://github.com/laxman-rathod/Python-Turtle/assets/131651450/bfc0752d-b773-4d08-9609-2f5b03f7d68a)## Features
- Displays "Happy Holi" text on the screen using Turtle graphics
- Simple and easy-to-understand code
- Suitable for beginners## Prerequisites
Before you begin, ensure you have met the following requirements:
- You have installed Python 3.x on your machine.
- You have installed the Turtle graphics library. If not, you can install it using the following command:```bash
pip install PythonTurtle
```## Installation
**To install this project, follow these steps:**
1. Clone the repository to your local machine:
```bash
git clone https://github.com/laxman-rathod/Python-Turtle.git
```2. Navigate to the project directory:
```bash
cd happy-holi-turtle-graphics
```## Usage
**To run the project, execute the following command:**
```bash
python happy_holi.py
```You should see a window displaying "Happy Holi" text created using Turtle graphics.
## Code Explanation
**Here's a brief explanation of the code:**
```bash
import turtle# Set up the screen
screen = turtle.Screen()
screen.title("Happy Holi")
screen.bgcolor("white")# Create a turtle object
pen = turtle.Turtle()
pen.color("blue")
pen.hideturtle()
pen.speed(2)# Function to display "Happy Holi"
def write_happy_holi():
pen.penup()
pen.goto(0, 0)
pen.pendown()
pen.write("Happy Holi", align="center", font=("Arial", 40, "bold"))# Display the text
write_happy_holi()# Keep the window open
turtle.done()
```## Contributing
If you want to contribute to this project, follow these steps:Fork the repository.
Create a new branch (git checkout -b feature-branch).
Make your changes and commit them (git commit -m 'Add some feature').
Push to the branch (git push origin feature-branch).
Open a pull request.## License
This project is licensed under the [MIT License](LICENSE).