animation.py

Created by morelo-lolo

Created on December 16, 2021

321 Bytes

Bonhomme animé


from kandinsky import *
from time import sleep
def voiture(x,y):
  fill_rect(x,y,50,10,(0,0,0))
  fill_rect(x+10,y-10,30,10,(0,0,0))
  fill_rect(x+5,y+10,5,5,(0,0,0))
  fill_rect(x+40,y+10,5,5,(0,0,0))


for x in range(200):
  voiture(x,100)
  
  sleep(0.1)
  fill_rect(77, 11, 168, 210, (248, 252, 248))

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.