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 50 51 52 53 54 55
|
from turtle import *
from math import *
def etoile5(taille,coulr):
edge = 1
angle = 144
while edge <= 5:
color(coulr)
forward(taille)
right(angle)
edge += 1
up()
goto(-100,0)
down()
count = 0
while count < 1:
i = 0
j = 4
taille5 = 50
while i < 4:
etoile5(taille5,'red')
up()
forward(taille5)
down()
taille5 += 5
i += 1
etoile5(taille5,'red')
up()
forward(taille5)
down()
taille5 -= 5
while j > 0:
etoile5(taille5,'red')
up()
forward(taille5)
down()
taille5 -= 5
j -= 1
count += 1
a = input() |
Partager