# Créé par wbrigitte, le 06/01/2022 en Python 3.2 from turtle import * from random import * hideturtle() speed(0) colormode(255) R=250 Color_Min=150 Rmax=255 Bmax=255 Vmax=255 rouge=randint(Color_Min,Rmax) bleu=randint(Color_Min,Bmax) vert=0 bgcolor(0,0,0) pencolor('white') pensize(2) setheading(180) up() goto(0,20) down() while R>20: rouge,bleu,vert rouge=randint(Color_Min,Rmax) bleu=randint(Color_Min,Bmax) vert=0 fillcolor(rouge,bleu,vert) begin_fill() forward(R) left(90) forward(R) left(90) forward(R) left(90) forward(R) left(90) end_fill() left(5) if not Rmax<=150: Rmax=Rmax-1 Vmax=Vmax-0 Bmax=Bmax-1 R=R-1 else: done()