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)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.