-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheid.py
More file actions
27 lines (21 loc) · 707 Bytes
/
eid.py
File metadata and controls
27 lines (21 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import turtle
def draw_eid_mubarak():
turtle.speed("slowest") # Set the drawing speed (optional)
# Create turtle screen
screen = turtle.Screen()
screen.bgcolor("gold") # Set the background color to gold
# Draw "Eid"
turtle.penup()
turtle.goto(-200, 0)
turtle.pendown()
turtle.color("darkblue") # Set the text color to dark blue
turtle.write("Eid", font=("Arial", 60, "bold"))
# Draw "Mubarak"
turtle.penup()
turtle.goto(-200, -100)
turtle.pendown()
turtle.color("darkblue") # Set the text color to dark blue
turtle.write("Mubarak!", font=("Arial", 60, "bold"))
turtle.done()
if __name__ == "__main__":
draw_eid_mubarak()