-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrapeau.py
More file actions
46 lines (39 loc) · 708 Bytes
/
Copy pathdrapeau.py
File metadata and controls
46 lines (39 loc) · 708 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
import turtle
x=800
y=800
turtle.setup(x,y)
turtle.bgcolor('red')
#cercle blanc
turtle.penup()
turtle.goto(0,-90)
turtle.pencolor('white')
turtle.pendown()
turtle.begin_fill()
turtle.circle(90,None,None)
turtle.color('white')
turtle.end_fill()
#cercle rouge
turtle.penup()
turtle.goto(0,-60)
turtle.pen()
turtle.pencolor('red')
turtle.pendown()
turtle.begin_fill()
turtle.circle(60,None,None)
turtle.color('red')
turtle.end_fill()
#etoile
turtle.penup()
turtle.goto(38,15)
turtle.pen()
turtle.pencolor('white')
turtle.pendown()
turtle.begin_fill()
turtle.left(18)
for i in range(5):
turtle.forward(25)
turtle.right(144)
turtle.forward(25)
turtle.left(72)
turtle.color('red')
turtle.end_fill()