seven.py

Created by schraf

Created on March 04, 2023

436 Bytes

Bon 7e anniversaire à la NUMWORKS


from kandinsky import *
from random import randint
import turtle

t = turtle
t.speed(0)
t.hideturtle()
t.color((255,180,50))

def de(): return randint(1,6)

draw_string("7",0,205,(238,)*3)
draw_string("y",11,202,(238,)*3)

while True:
 x = randint(0,280)
 y = randint(0,200)
 if get_pixel(1+x//15,208+y//15)[0]<248:
    t.penup()
    t.pensize(de())
    t.goto(x-140,80-y)
    t.pendown()
    t.goto(x-140+de(),80+de()-y)