-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraw_flower.py
More file actions
49 lines (37 loc) · 1007 Bytes
/
draw_flower.py
File metadata and controls
49 lines (37 loc) · 1007 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import turtle
def draw_square(some_turtle):
some_turtle.color("yellow")
some_turtle.shape("turtle")
import turtle
def draw_square(some_turtle):
some_turtle.color("yellow")
some_turtle.shape("turtle")
some_turtle.speed(30)
for i in range(1,5):
some_turtle.forward(150)
some_turtle.left(90)
def draw_circle(loma):
loma.shape("arrow")
loma.color("yellow")
loma.speed(1)
loma.circle(100)
def draw_art():
window = turtle.Screen()
window.bgcolor("red")
square = turtle.Turtle()
for i in range(1,75):
draw_square(square)
square.left(5)
if(i is 37):
square.left(85)
square.forward(350)
square.right(90)
square.forward(5)
square.left(90)
square.backward(350)
square.right(90)
square.backward(5)
square.left(90)
square.right(85)
window.exitonclick()
draw_art()