1
+ import turtle
2
+
3
+ turtle .speed (0 )
4
+ turtle .hideturtle ()
5
+ turtle .setup (800 ,600 )
6
+ turtle .title ('Shiva Linga' )
7
+ turtle .speed (1 )
8
+ turtle .up ()
9
+ turtle .hideturtle ()
10
+
11
+ def my_goto (x , y ):
12
+ turtle .pencolor ("orange" )
13
+ turtle .penup ()
14
+ turtle .goto (x , y )
15
+ turtle .pendown ()
16
+
17
+ def round_rectangle (center_x ,center_y ,width ,height ,cornersize ):
18
+ turtle .up ()
19
+ turtle .goto (center_x - width / 2 + cornersize ,center_y - height / 2 )
20
+ turtle .down ()
21
+ for _ in range (2 ):
22
+ turtle .fillcolor ("black" )
23
+ turtle .begin_fill ()
24
+ turtle .fd (width - 2 * cornersize )
25
+ turtle .circle (cornersize ,90 )
26
+ turtle .fd (height - 2 * cornersize )
27
+ turtle .circle (cornersize ,90 )
28
+ turtle .end_fill ()
29
+
30
+
31
+ def round_rectangle (center_x ,center_y ,width ,height ,cornersize ):
32
+ turtle .up ()
33
+ turtle .goto (center_x - width / 2 + cornersize ,center_y - height / 2 )
34
+ turtle .down ()
35
+ for _ in range (2 ):
36
+ turtle .fillcolor ("black" )
37
+ turtle .begin_fill ()
38
+ turtle .fd (width - 2 * cornersize )
39
+ turtle .circle (cornersize ,90 )
40
+ turtle .fd (height - 2 * cornersize )
41
+ turtle .circle (cornersize ,90 )
42
+ turtle .end_fill ()
43
+
44
+ round_rectangle (0 ,0 ,200 ,300 ,80 )
45
+
46
+ turtle .fillcolor ('black' )
47
+ turtle .begin_fill ()
48
+
49
+
50
+
51
+ turtle .goto (- 35 , 40 )
52
+ turtle .penup ()
53
+ turtle .fillcolor ('white' )
54
+ turtle .begin_fill ()
55
+ turtle .forward (80 )
56
+ turtle .left (90 )
57
+ turtle .forward (10 )
58
+ turtle .left (90 )
59
+ turtle .forward (80 )
60
+ turtle .left (90 )
61
+ turtle .forward (10 )
62
+ turtle .left (90 )
63
+
64
+
65
+ turtle .goto (- 35 , 80 )
66
+ turtle .forward (80 )
67
+ turtle .left (90 )
68
+ turtle .forward (10 )
69
+ turtle .left (90 )
70
+ turtle .forward (80 )
71
+ turtle .left (90 )
72
+ turtle .forward (10 )
73
+ turtle .left (90 )
74
+
75
+ turtle .goto (- 35 , 60 )
76
+ turtle .forward (80 )
77
+ turtle .left (90 )
78
+ turtle .forward (10 )
79
+ turtle .left (90 )
80
+ turtle .forward (80 )
81
+ turtle .left (90 )
82
+ turtle .forward (10 )
83
+ turtle .left (90 )
84
+
85
+ turtle .pendown ()
86
+ turtle .end_fill ()
87
+
88
+
89
+ turtle .fillcolor ('red' )
90
+ turtle .begin_fill ()
91
+
92
+ turtle .goto (5 ,50 )
93
+ turtle .penup ()
94
+ r = 15
95
+ turtle .circle (r )
96
+ turtle .pendown ()
97
+ turtle .end_fill ()
98
+
99
+ turtle .goto (- 150 , - 175 )
100
+ turtle .penup ()
101
+ turtle .pencolor ("black" )
102
+ turtle .fillcolor ("black" )
103
+ turtle .begin_fill ()
104
+ round_rectangle (90 ,- 125 ,600 ,100 ,50 )
105
+ turtle .pendown ()
106
+
107
+
108
+ my_goto (- 300 , - 300 )
109
+ turtle .write ('BY :- Coding_Buddies4' , font = ("Bradley Hand ITC" , 50 , "bold" ))
110
+
111
+
112
+ my_goto (- 150 ,150 )
113
+ turtle .write ('हर हर महादेव' , font = ("Bradley Hand ITC" , 50 , "bold" ))
114
+ turtle .done ()
0 commit comments