# Créé par wbrigitte, le 06/01/2022 en Python 3.2 from turtle import * from random import * hideturtle() speed(0) colormode(255) R=300 Color_Min=150 Rmax=255 Bmax=255 Vmax=255 up() goto(0,R) down() rouge=randint(Color_Min,Rmax) bleu=randint(Color_Min,Bmax) vert=0 bgcolor(0,0,0) pencolor('white') pensize(6) setheading(180) up() home() down() #for i in range(2048): while R>20: rouge,bleu,vert rouge=randint(Color_Min,Rmax) bleu=randint(Color_Min,Bmax) vert=0 fillcolor(rouge,bleu,vert) begin_fill() circle(R,60) left(105) circle(R,60) end_fill() left(5) if not Rmax<=150: Rmax=Rmax-1 Vmax=Vmax-0 Bmax=Bmax-1 R=R-3 else: done()