From c5d855289e1d8bd77cb3682837bdc36c7aaf0b29 Mon Sep 17 00:00:00 2001 From: "Kylian.B-M" Date: Thu, 29 Sep 2022 16:21:00 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'rue.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rue.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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)