from kandinsky import * from time import sleep # Fond noir fill_rect(0, 0, 320, 222, (0, 0, 0)) while True: # Voyant rouge allumé fill_rect(290, 10, 20, 20, (255, 0, 0)) sleep(0.5) # Voyant éteint fill_rect(290, 10, 20, 20, (0, 0, 0)) sleep(0.5)
Create, edit, and import your Python scripts
from kandinsky import * from time import sleep # Fond noir fill_rect(0, 0, 320, 222, (0, 0, 0)) while True: # Voyant rouge allumé fill_rect(290, 10, 20, 20, (255, 0, 0)) sleep(0.5) # Voyant éteint fill_rect(290, 10, 20, 20, (0, 0, 0)) sleep(0.5)