diff --git a/rue.py b/rue.py index 46f5907..1de4214 100644 --- a/rue.py +++ b/rue.py @@ -46,11 +46,10 @@ def dessiner_fenetres(informations:dict): fenetre['épaisseur'] = 1 x0 = informations['coordonnees'] position = informations['fenetre'] - rectangle(30, 30, fenetre, (x0 + (position * 40) -25, -180)) - rectangle(30, 30, fenetre, (x0 + (position * 80) -25, -180)) - rectangle(30, 30, fenetre, (x0 + (position * 120) -25, -180)) - - + for etage in range(0,informations['etage']): + rectangle(30, 30, fenetre, (x0 + (position * 40) -25, -180 + etage*80)) + rectangle(30, 30, fenetre, (x0 + (position * 80) -25, -180 + etage*80)) + rectangle(30, 30, fenetre, (x0 + (position * 120) -25, -180 + etage*80)) def dessiner_immeuble(informations:dict): dessiner_facade(informations)