You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
573 B
16 lines
573 B
1 year ago
|
informations['toit'] = rd.randint(1,2)
|
||
|
|
||
|
def dessiner_toit(immeuble:dict) -> None:
|
||
|
# Traduction des données de rue vers dessiner
|
||
|
crayon = {}
|
||
|
crayon['écriture'] = "grey"
|
||
|
crayon['fond'] = immeuble['couleur_facade']
|
||
|
crayon['épaisseur'] = 3
|
||
|
x, y = coordonnees_facade(immeuble) # désempaquatage du couple
|
||
|
y = y + 0
|
||
|
cote = LARGEUR_IMMEUBLE
|
||
|
nb = immeuble['etages']
|
||
|
if immeuble['toit'] == 1:
|
||
|
ds.rectangle(80, cote, crayon, (x,y + nb * 80))
|
||
|
elif immeuble['toit'] == 2:
|
||
|
ds.triangle_isocele(cote, crayon, (x,y + nb * 80))
|