drapeau_avec_kandinsky.py

Created by elodie-gamot

Created on August 26, 2021

335 Bytes

Drapeau belge sur l’écran


from math import *
from kandinsky import *
from random import *

black=color(0,0,0)
yellow=color(255,255,0)
red=color(255,0,0)

for i in range(320):
  for j in range(222):
    if i<107:
      set_pixel(i,j,black)
    if i>=107 and i<214:
      set_pixel(i,j,yellow)
    if i>=214:
      set_pixel(i,j,red)

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.