Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix translation #75

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fr-FR/code/powerful_patterns_kek_lepis_sarawak/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def quadrant():
# Choisis des couleurs magnifiques pour les couches de gâteau
turquoise = Color(64, 224, 208)
or = Color(255, 215, 0)
or_ = Color(255, 215, 0)
tomate = Color(255, 99, 71)

# La confiture colle les couches ensemble
Expand All @@ -22,7 +22,7 @@ def quadrant():
debut_y = i * 60 # hauteur de 3 blocs de gâteau
fill(turquoise)
rect(0, debut_y, 180, 20)
fill(or)
fill(or_)
rect(0, debut_y + 20, 180, 20)
fill(tomate)
rect(0, debut_y + 40, 180, 20)
Expand Down
8 changes: 4 additions & 4 deletions fr-FR/code/powerful_patterns_mcewen_tartan_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def draw():
for i in range(int(carres)):
ecart = 0
for j in range(int(carres)):
fill(COULEUR_BASE[j % 2]) # VERT et BLEU
fill(COULEURS_BASE[j % 2]) # VERT et BLEU
rect(ecart, coordonnee_y, taille_carre, taille_carre)
ecart = ecart + taille_carre
coordonnee_y = coordonnee_y + taille_carre
Expand All @@ -48,14 +48,14 @@ def draw():
fill(COULEURS_CROIX[i % 2]) # JAUNE et ROUGE
rect(croix, 0, 4, lignes)
rect(0, croix, lignes, 4)
croix = croix + 2 * taille_croix
croix = croix + 2 * taille_carre
# Dessine les croix de couture
no_fill()
croix = taille_carre + taille_carre / 2 - 2
for i in range(int(carres)):
rect(croix, 0, 4, lignes)
rect(0, croix, lignes, 4)
croix = croix + taille_croix
croix = croix + taille_carre

# Dessine les lignes grises où le matériau se chevauche
no_stroke()
Expand All @@ -71,7 +71,7 @@ def draw():


print('🏴󠁧󠁢󠁳󠁣󠁴󠁿󠁢󠁳󠁣󠁴󠁿 Voici McEwen Tartan 🏴󠁧󠁢󠁳󠁣󠁴󠁿󠁧󠁢󠁳󠁣󠁴󠁿')
taille_carrée = int(
taille_carre = int(
input('Quelle taille de tartan 🏴souhaites-tu ? 20, 50 ou 100'))

run(frame_rate=10)
2 changes: 1 addition & 1 deletion fr-FR/code/powerful_patterns_random_faces_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def draw():
push_matrix()
# décalé de la largeur d'un quart de taille du visage
translate(randint(-50, 350), randint(-50, 350))
scale(0,25, 0,25) # chemins de quart de taille
scale(0.25, 0.25) # chemins de quart de taille
dessin_motif()
pop_matrix()

Expand Down
2 changes: 1 addition & 1 deletion fr-FR/code/powerful_patterns_yakan_weaving_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def draw():

translate(-largeur_motif/2, -largeur_motif/2) # pour commencer avec des demi-motifs

si frame_count < 20:  # nombre maximum de lignes
if frame_count < 20: # nombre maximum de lignes
for row in range(frame_count):
rotation_motif()
if row / 2 == 0: # pour décaler le motif sur la ligne suivante
Expand Down
Loading