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)