Spécial Saint-Valentin
import turtle from kandinsky import fill_rect from math import * tt = turtle nb = 600 fill_rect(0,0,320,222,(255,217,226)) def coeur(d,coul,s=1): tt.color(coul) tt.pensize(s) for i in range(nb): t = i * pi / nb x = 4/9*sin(2*t)+1/3*sin(t)**8*cos(3*t)+1/8*sin(2*t)*cos(247*t)**4 y = sin(t)+1/3*sin(t)**8*sin(3*t)+1/8*sin(2*t)*sin(247*t)**4 tt.penup() if i==0 else tt.pendown() tt.goto(d+200*x,d+200*y-100) tt.hideturtle() coeur(4,(254,255,240),2) coeur(0,(240,36,40))