from lycee import * from turtle import * import time speed(1) for i in range(300): # configure la tortue #hideturtle() bgcolor("gray") width(10) up() right(90) forward(300) left(90) forward(150) down() # coeur color("black","red") begin_fill() left(60) forward(180.9) circle (50,190) left(220) circle (50,190) forward(180.9) end_fill() # coeur --> trèfle up() left(150) forward(300) right(90) forward(50) left(180) down() # trèfle color("red","black") begin_fill() forward(100) right(120) forward(75) left(120) forward(37.5) right(180) #up() #back(37.5) #down() circle(50,-180) left(90) circle(50,-180) left(90) circle(50,-180) back(37.5) right(60) forward(75) end_fill() # trèfle --> carreaux up() right(120) forward(375) down() # carreaux color("black","red") begin_fill() right(60) forward(150) right(60) forward(150) right(120) forward(150) right(60) forward(150) end_fill() # carreaux --> pique up() left(30) forward(300) left(90) forward(75) left(180) down() # pique color("red","black") begin_fill() forward(135) right(120) forward(75) left(30) right(90) left(30) circle(50,-180) left(180) forward(75) left(30) forward(30) right(120) forward(30) left(30) forward(75) left(180) circle(50,-180) left(30) right(90) left(30) forward(75) end_fill() end_fill() time.sleep(4) reset() done()