diff --git a/af-ZA/meta.yml b/af-ZA/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/af-ZA/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/af-ZA/step_1.md b/af-ZA/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/af-ZA/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/ar-SA/meta.yml b/ar-SA/meta.yml index 688ed51..ad82fb4 100644 --- a/ar-SA/meta.yml +++ b/ar-SA/meta.yml @@ -1,13 +1,15 @@ -title: كتابة نص باستخدام سلحفاة Python +--- +title: كتابة نص باستخدام Python turtle hero_image: images/banner.png -description: كتابة نص باستخدام سلحفاة Python -original_url: +description: كتابة نص باستخدام Python turtle +original_url: theme: cc-prototype -duration: 1 # 1, 2 or 3 +duration: 1 #1, 2 or 3 listed: false ingredient: true copyedit: false interests: "graphics" technologies: "python, turtle" steps: - - title: كتابة نص + - + title: كتابة نص diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md index 1c422cf..f59907b 100644 --- a/ar-SA/step_1.md +++ b/ar-SA/step_1.md @@ -1,29 +1,29 @@ -يمكنك استخدام السلحفاة لكتابة نص. +يمكنك استخدام turtle لكتابة النص. -``` -turtle.write('Hello!') +```python +turtle.write('مرحباً!') ``` -عيِّن لون السلحفاة لتنشئ نصًا ملونًا: +اضبط لون turtle لإنشاء نص ملون: -``` +```python turtle.color('deep pink') -turtle.write('Hello!') +turtle.write('مرحباً!') ``` -يمكنك أيضًا تغيير خط النص ومحاذاته. +يمكنك أيضًا تغيير نوع الخط ومحاذاة النص. -``` +```python style = ('Courier', 30, 'italic') -turtle.write('Hello!', font=style, align='center') +turtle.write('مرحباً!', font=style, align='center') ``` -يكون الخط عبارة عن مجموعة بيانات مترابطة تحتوي على: -+ اسم الخط، مثل 'Arial' أو 'Courier' أو 'Times New Roman' -+ حجم الخط بوحدة البكسل -+ نوع الخط، ويمكن أن يكون 'normal' أو 'bold' أو 'italic' +نوع الخط هو مجموعة تحتوي على: + ++ اسم الخط مثل "Arial" أو "Courier" أو "Times New Roman" ++ حجم الخط بالبكسل ++ نمط الخط ، الذي يمكن أن يكون "طبيعيًا" أو "غامقًا" أو "مائل" -لتعيين المحاذاة التي تحدد موضع النص وفقًا لموضع السلحفاة، استخدم المَعلمة `align`. ويمكن تعيين المَعلمة `align` إلى أحد الخيارات التالية: 'left', 'center', 'right' +لضبط المحاذاة التي تُحدد موضع النص وفقًا لموضع السلحفاة، استخدم المتغير `align`. المتغير `align` يمكن أن يأخذ أحد القيم التالية: "left"، و"center"، و"right" -مثال: - +مثال: \ No newline at end of file diff --git a/bn-BD/meta.yml b/bn-BD/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/bn-BD/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/bn-BD/step_1.md b/bn-BD/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/bn-BD/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/ca-ES/meta.yml b/ca-ES/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/ca-ES/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/ca-ES/step_1.md b/ca-ES/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/ca-ES/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/cs-CZ/meta.yml b/cs-CZ/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/cs-CZ/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/cs-CZ/step_1.md b/cs-CZ/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/cs-CZ/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/cy-GB/meta.yml b/cy-GB/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/cy-GB/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/cy-GB/step_1.md b/cy-GB/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/cy-GB/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/da-DK/meta.yml b/da-DK/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/da-DK/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/da-DK/step_1.md b/da-DK/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/da-DK/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/de-DE/meta.yml b/de-DE/meta.yml new file mode 100644 index 0000000..3721625 --- /dev/null +++ b/de-DE/meta.yml @@ -0,0 +1,15 @@ +--- +title: Schreiben von Text mit Python Turtle +hero_image: images/banner.png +description: Schreiben von Text mit Python Turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Text schreiben diff --git a/de-DE/step_1.md b/de-DE/step_1.md new file mode 100644 index 0000000..79b2103 --- /dev/null +++ b/de-DE/step_1.md @@ -0,0 +1,29 @@ +Du kannst eine Schildkröte verwenden, um Text zu schreiben. + +```python +turtle.write ('Hallo!') +``` + +Lege die Farbe der Schildkröte fest, um farbigen Text zu erstellen: + +```python +turtle.color ('deep pink') +turtle.write ('Hallo!') +``` + +Du kannst auch die Schriftart und Ausrichtung des Textes ändern. + +```python +style = ('Courier', 30, 'italic') +turtle.write ('Hallo!', font = style, align = 'center') +``` + +Die Schriftart ist ein Tupel mit: + ++ Dem Schriftnamen wie 'Arial', 'Courier' oder 'Times New Roman' ++ Der Schriftgröße in Pixel ++ Der Schriftart, die normal ('normal'), fett ('bold') oder kursiv ('italic') sein kann + +Um die Ausrichtung festzulegen, die die Position des Textes in Bezug zur Position der Schildkröte steuert, verwendest du den Parameter `align`. `align` kann auf eine der folgenden Optionen eingestellt werden: "left" (links), "center" (Mitte), "right" (rechts) + +Beispiel: \ No newline at end of file diff --git a/el-GR/meta.yml b/el-GR/meta.yml new file mode 100644 index 0000000..400b5b2 --- /dev/null +++ b/el-GR/meta.yml @@ -0,0 +1,15 @@ +--- +title: Γράφοντας κείμενο με τη χελώνα Python +hero_image: images/banner.png +description: Γράφοντας κείμενο με τη χελώνα Python +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "γραφικά" +technologies: "python, χελώνα" +steps: + - + title: Σύνταξη κειμένου diff --git a/el-GR/step_1.md b/el-GR/step_1.md new file mode 100644 index 0000000..edf46fa --- /dev/null +++ b/el-GR/step_1.md @@ -0,0 +1,29 @@ +Μπορείτε να χρησιμοποιήσετε μια χελώνα για να γράψετε κείμενο. + +```python +turtle.write ('Γεια σας!') +``` + +Ρυθμίστε το χρώμα της χελώνας για να δημιουργήσετε έγχρωμο κείμενο: + +```python +turtle.color('deep pink') +turtle.write ('Γεια σας!') +``` + +Μπορείτε επίσης να αλλάξετε τη γραμματοσειρά και την ευθυγράμμιση του κειμένου. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Γεια σας!', font=style, align='center') +``` + +Η γραμματοσειρά είναι μια πλειάδα που περιέχει: + ++ Το όνομα της γραμματοσειράς, όπως 'Arial', 'Courier' ή 'Times New Roman' ++ Το μέγεθος γραμματοσειράς σε εικονοστοιχεία ++ Ο τύπος γραμματοσειράς, ο οποίος μπορεί να είναι "κανονικός", "έντονος" ή "πλάγιος" + +Για να ορίσετε την ευθυγράμμιση που καθορίζει τον τρόπο με τον οποίο το κείμενο τοποθετείται με βάση τη θέση της χελώνας, χρησιμοποιήστε την παράμετρο `align`. Η `align` μπορεί να οριστεί σε μία από αυτές τις επιλογές: 'left', 'center', 'right' + +Για παράδειγμα: \ No newline at end of file diff --git a/en-US/meta.yml b/en-US/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/en-US/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/en-US/step_1.md b/en-US/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/en-US/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/es-ES/meta.yml b/es-ES/meta.yml new file mode 100644 index 0000000..ff29743 --- /dev/null +++ b/es-ES/meta.yml @@ -0,0 +1,15 @@ +--- +title: Escribir texto con la tortuga de Python +hero_image: images/banner.png +description: Escribir texto con la tortuga de Python +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Escribir texto diff --git a/es-ES/step_1.md b/es-ES/step_1.md new file mode 100644 index 0000000..c430362 --- /dev/null +++ b/es-ES/step_1.md @@ -0,0 +1,29 @@ +Puedes usar una tortuga para escribir texto. + +```python +turtle.write('¡Hola!') +``` + +Establece el color de la tortuga para crear texto en color: + +```python +turtle.color('deep pink') # rosa intenso +turtle.write('¡Hola!') +``` + +También puedes cambiar la fuente y la alineación del texto. + +```python +estilo = ('Courier', 30, 'italic') # fuente, tamaño, cursiva +turtle.write('¡Hola!', font = estilo, align = 'center') # centrado +``` + +La fuente es una tupla que contiene: + ++ El nombre de la fuente, como 'Arial', 'Courier' o 'Times New Roman' ++ El tamaño de la fuente en píxeles ++ El tipo de fuente, que puede ser 'normal', 'bold' o 'italic' (normal, negrita o cursiva) + +Para establecer la alineación que controla cómo se posiciona el texto en función de la posición de la tortuga, usa el parámetro `align` (alineación). `align` se puede establecer en una de estas opciones: 'left', 'center', 'right' (izquierda, centro, derecha) + +Ejemplo: \ No newline at end of file diff --git a/es-LA/meta.yml b/es-LA/meta.yml new file mode 100644 index 0000000..af3304a --- /dev/null +++ b/es-LA/meta.yml @@ -0,0 +1,15 @@ +--- +title: Escribiendo texto con Python tortuga +hero_image: images/banner.png +description: Escribiendo texto con Python tortuga +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Escribiendo texto diff --git a/es-LA/step_1.md b/es-LA/step_1.md new file mode 100644 index 0000000..c430362 --- /dev/null +++ b/es-LA/step_1.md @@ -0,0 +1,29 @@ +Puedes usar una tortuga para escribir texto. + +```python +turtle.write('¡Hola!') +``` + +Establece el color de la tortuga para crear texto en color: + +```python +turtle.color('deep pink') # rosa intenso +turtle.write('¡Hola!') +``` + +También puedes cambiar la fuente y la alineación del texto. + +```python +estilo = ('Courier', 30, 'italic') # fuente, tamaño, cursiva +turtle.write('¡Hola!', font = estilo, align = 'center') # centrado +``` + +La fuente es una tupla que contiene: + ++ El nombre de la fuente, como 'Arial', 'Courier' o 'Times New Roman' ++ El tamaño de la fuente en píxeles ++ El tipo de fuente, que puede ser 'normal', 'bold' o 'italic' (normal, negrita o cursiva) + +Para establecer la alineación que controla cómo se posiciona el texto en función de la posición de la tortuga, usa el parámetro `align` (alineación). `align` se puede establecer en una de estas opciones: 'left', 'center', 'right' (izquierda, centro, derecha) + +Ejemplo: \ No newline at end of file diff --git a/fi-FI/meta.yml b/fi-FI/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/fi-FI/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/fi-FI/step_1.md b/fi-FI/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/fi-FI/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/fil-PH/meta.yml b/fil-PH/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/fil-PH/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/fil-PH/step_1.md b/fil-PH/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/fil-PH/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/fr-CA/meta.yml b/fr-CA/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/fr-CA/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/fr-CA/step_1.md b/fr-CA/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/fr-CA/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml new file mode 100644 index 0000000..4a4f498 --- /dev/null +++ b/fr-FR/meta.yml @@ -0,0 +1,15 @@ +--- +title: Écrire du texte avec Python Turtle +hero_image: images/banner.png +description: Écrire du texte avec Python Turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Écrire du texte diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md new file mode 100644 index 0000000..40d50a6 --- /dev/null +++ b/fr-FR/step_1.md @@ -0,0 +1,29 @@ +Tu peux utiliser une tortue pour écrire du texte. + +```python +turtle.write('Bonjour !') +``` + +Définis la couleur de la tortue pour créer un texte coloré : + +```python +turtle.color('deep pink') +turtle.write('Bonjour !') +``` + +Tu peux également modifier la police et l'alignement du texte. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Bonjour !', font=style, align='center') +``` + +La police est un tuple contenant : + ++ Le nom de la police tel que « Arial », « Courier » ou « Times New Roman » ++ La taille de la police en pixels ++ Le type de police, qui peut être « normal », « gras » ou « italique » + +Pour définir l'alignement qui contrôle le positionnement du texte en fonction de la position de la tortue, utilise le paramètre `align`. `align` peut être défini sur l'une de ces options : 'left', 'center', 'right' + +Exemple : \ No newline at end of file diff --git a/he-IL/meta.yml b/he-IL/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/he-IL/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/he-IL/step_1.md b/he-IL/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/he-IL/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/hi-IN/meta.yml b/hi-IN/meta.yml index a0c89fb..36cd882 100644 --- a/hi-IN/meta.yml +++ b/hi-IN/meta.yml @@ -1,13 +1,15 @@ +--- title: पाइथन के साथ टेक्स्ट लिखना hero_image: images/banner.png description: पाइथन के साथ टेक्स्ट लिखना -original_url: +original_url: theme: cc-prototype -duration: 1 # 1, 2 or 3 +duration: 1 #1, 2 or 3 listed: false ingredient: true copyedit: false -interests: “graphics" -technologies: “python, turtle" +interests: "“graphics\"" +technologies: "“python, turtle\"" steps: - - title: टेक्स्ट लिखना + - + title: टेक्स्ट लिखना diff --git a/hi-IN/step_1.md b/hi-IN/step_1.md index 192daf4..48e03c1 100644 --- a/hi-IN/step_1.md +++ b/hi-IN/step_1.md @@ -1,29 +1,29 @@ -आप लिखने के लिए टर्टल का उपयोग कर सकते हैं। +आप पाठ लिखने के लिए तुर्त्ल का उपयोग कर सकते हैं। ```python -turtle.write('Hello!') +turtle.write('हैलो!') ``` -रंगीन टेक्स्ट बनाने के लिए टर्टल का रंग निर्धारित करें: +रंगीन पाठ बनाने के लिए कछुए का रंग निर्धारित करें: ```python turtle.color('deep pink') -turtle.write('Hello!') +turtle.write('हैलो!') ``` -आप फॉन्ट और टेक्स्ट के संरेखण में भी परिवर्तन कर सकते हैं। +आप पाठ का फ़ॉन्ट और संरेखण भी बदल सकते हैं। ```python style = ('Courier', 30, 'italic') turtle.write('Hello!', font=style, align='center') ``` -फॉन्ट tuple जिसमें यह शामिल है: -+ फॉन्ट के नाम जैसे 'Arial', 'Courier', या 'Times New Roman' -+ पिक्सल्स में फॉन्ट का आकार -+ फॉन्ट की किस्म, जो 'normal', 'bold', या 'italic' हो सकती है +फ़ॉन्ट एक टपल युक्त है: -वह संरेखण निर्धारित करने के लिए, जो टर्टल की स्थिति के आधार पर टेक्स्ट की स्थिति को नियंत्रित करता है, `align` पैरामीटर का उपयोग करें। `align` का उपयोग इनमें से के लिए किया जा सकता है: ‘बायाँ’, ‘केंद्र’, ‘दायाँ' ++ फ़ॉन्ट का नाम जैसे 'एरियल', 'कूरियर', या 'टाइम्स न्यू रोमन' ++ पिक्सेल में फ़ॉन्ट आकार ++ फ़ॉन्ट प्रकार, जो 'सामान्य', 'बोल्ड' या 'इटैलिक' हो सकता है -उदाहरण: - +संरेखण सेट करने के लिए जो नियंत्रित करता है कि तुर्त्ल की स्थिति के आधार पर पाठ कैसे स्थित है, `align` पैरामीटर का उपयोग करें।। `align` संरेखित इनमें से किसी एक विकल्प पर सेट किया जा सकता है: 'लेफ्ट', 'सेंटर', 'राइट' + +उदाहरण: \ No newline at end of file diff --git a/hr-HR/meta.yml b/hr-HR/meta.yml new file mode 100644 index 0000000..cde3a9d --- /dev/null +++ b/hr-HR/meta.yml @@ -0,0 +1,15 @@ +--- +title: Pisanje teksta koristeći turtle modul u Pythonu +hero_image: images/banner.png +description: Pisanje teksta koristeći turtle modul u Pythonu +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Pisanje teksta diff --git a/hr-HR/step_1.md b/hr-HR/step_1.md new file mode 100644 index 0000000..e803677 --- /dev/null +++ b/hr-HR/step_1.md @@ -0,0 +1,29 @@ +Možeš koristiti turtle modul za pisanje teksta. + +```python +turtle.write('Bok!') +``` + +Postavi boju kornjače da obojaš tekst: + +```python +turtle.color('deep pink') +turtle.write('Bok!') +``` + +Također možeš promijeniti font i poravnavanje teksta. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Bok!', font=style, align='center') +``` + +Font je linija koja sadrži: + ++ Naziv fonta, primjerice „Arial”, „Courier” ili „Times New Roman” ++ Veličinu fonta u pikselima ++ Tip fonta, koji može biti „normal” (normalan), „bold” (podebljan) ili „italic” (ukošen) + +Upotrijebi parametar `align` (poravnanje) da postaviš poravnanje koje, na temelju položaja kornjače, određuje kako će tekst biti postavljen. Parametar `align` može se postaviti na jednu od ovih opcija: „left” (lijevo), „center” (centrirano), „right” (desno) + +Na primjer: \ No newline at end of file diff --git a/hu-HU/meta.yml b/hu-HU/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/hu-HU/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/hu-HU/step_1.md b/hu-HU/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/hu-HU/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/id-ID/meta.yml b/id-ID/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/id-ID/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/id-ID/step_1.md b/id-ID/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/id-ID/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/ig-NG/meta.yml b/ig-NG/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/ig-NG/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/ig-NG/step_1.md b/ig-NG/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/ig-NG/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/it-IT/meta.yml b/it-IT/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/it-IT/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/it-IT/step_1.md b/it-IT/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/it-IT/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/ja-JP/meta.yml b/ja-JP/meta.yml new file mode 100644 index 0000000..7617de1 --- /dev/null +++ b/ja-JP/meta.yml @@ -0,0 +1,15 @@ +--- +title: Pythonのturtleでテキストを書く +hero_image: images/banner.png +description: Pythonのタートル(かめ)でテキストを書く +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: テキストを書く diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md new file mode 100644 index 0000000..d027318 --- /dev/null +++ b/ja-JP/step_1.md @@ -0,0 +1,29 @@ +turtle(タートル)を使ってテキストを書くことができます。 + +```python +turtle.write('こんにちは!') +``` + +タートル(かめ)の色を設定して、色付きのテキストを作成します。 + +```python +turtle.color('deep pink') +turtle.write('こんにちは!') +``` + +テキストのフォントと配置を変更することもできます。 + +```python +style = ('Courier', 30, 'italic') +turtle.write('こんにちは!', font=style, align='center') +``` + +フォントは以下を含むタプルです。 + ++ 'Arial'、 'C​​ourier'、 'Times New Roman'などのフォント名 ++ ピクセル単位のフォントサイズ ++ 'normal'(通常)、 'bold'(太字)、または 'italic'(斜体)のフォントタイプ + +タートルの位置を基に、テキストをどう配置するかを決めるには、 `align` パラメータを使います。 `align` は、 'left'(左)、 'center'(中央)、 'right'(右)のいずれかを設定できます。 + +例: \ No newline at end of file diff --git a/kn-IN/meta.yml b/kn-IN/meta.yml new file mode 100644 index 0000000..a001575 --- /dev/null +++ b/kn-IN/meta.yml @@ -0,0 +1,15 @@ +--- +title: Python turtle ಪಠ್ಯವನ್ನು ಬರೆಯುವುದು +hero_image: images/banner.png +description: Python tutle ಪಠ್ಯವನ್ನು ಬರೆಯುವುದು +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: ಪಠ್ಯವನ್ನು ಬರೆಯುವುದು diff --git a/kn-IN/step_1.md b/kn-IN/step_1.md new file mode 100644 index 0000000..4660201 --- /dev/null +++ b/kn-IN/step_1.md @@ -0,0 +1,29 @@ +ಪಠ್ಯವನ್ನು ಬರೆಯಲು ನೀವು turtle ಬಳಸಬಹುದು. + +```python +turtle.write('Hello!') +``` + +ಬಣ್ಣದ ಪಠ್ಯವನ್ನು ರಚಿಸಲು turtle's ಬಣ್ಣವನ್ನು ಹೊಂದಿಸಿ: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +ನೀವು ಪಠ್ಯದ ಫಾಂಟ್ ಮತ್ತು ಜೋಡಣೆಯನ್ನು ಸಹ ಬದಲಾಯಿಸಬಹುದು. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +ಫಾಂಟ್ ಒಳಗೊಂಡಿರುವ tuple ಆಗಿದೆ: + ++ 'Arial', 'Courier', or 'Times New Roman' ನಂತಹ ಫಾಂಟ್ ಹೆಸರು ++ ಫಾಂಟ್ ಗಾತ್ರ ಪಿಕ್ಸೆಲ್‌ಗಳಲ್ಲಿ ++ ಫಾಂಟ್ ಪ್ರಕಾರ, 'normal', 'bold', or 'italic' ಅದುಆಗಿರಬಹುದು + +Turtle ಸ್ಥಾನವನ್ನು ಆಧರಿಸಿ ಪಠ್ಯವನ್ನು ಹೇಗೆ ಇರಿಸಲಾಗಿದೆ ಎಂಬುದನ್ನು ನಿಯಂತ್ರಿಸುವ ಜೋಡಣೆಯನ್ನು ಹೊಂದಿಸಲು, `align` ನಿಯತಾಂಕವನ್ನು ಬಳಸಿ. `align` ಅನ್ನು ಈ ಆಯ್ಕೆಗಳಲ್ಲಿ ಒಂದಕ್ಕೆ ಹೊಂದಿಸಬಹುದು: 'left', 'center', 'right' + +ಉದಾಹರಣೆ: \ No newline at end of file diff --git a/ko-KR/meta.yml b/ko-KR/meta.yml new file mode 100644 index 0000000..6d02e92 --- /dev/null +++ b/ko-KR/meta.yml @@ -0,0 +1,15 @@ +--- +title: 파이썬 터틀로 텍스트 쓰기 +hero_image: images/banner.png +description: 파이썬 터틀로 텍스트 쓰기 +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "그래픽" +technologies: "python, turtle" +steps: + - + title: 글쓰기 diff --git a/ko-KR/step_1.md b/ko-KR/step_1.md new file mode 100644 index 0000000..9acc28a --- /dev/null +++ b/ko-KR/step_1.md @@ -0,0 +1,29 @@ +거북이를 사용하여 텍스트를 쓸 수 있습니다. + +```python +turtle.write ( '안녕!') +``` + +거북이의 색을 설정하여 색칠 된 텍스트를 쓸 수 있습니다. + +```python +turtle.color('deep pink') +turtle.write('안녕!') +``` + +텍스트의 글꼴과 맞춤을 변경할 수도 있습니다. + +```python +style = ('Courier', 30, 'italic') +turtle.write('안녕!', font=style, align='center') +``` + +글꼴은 다음을 포함하는 튜플입니다. + ++ 'Arial', 'Courier'또는 'Times New Roman'과 같은 글꼴 이름 ++ 글꼴 크기 (픽셀 단위) ++ 글꼴 유형: '보통', '굵게'또는 '기울임 꼴' 등 + +거북의 위치에 따라 텍스트의 위치를 ​​제어하는 ​​정렬을 설정하려면 `align` 매개 변수를 사용합니다. `align` 은 'left', 'center', 'right'중 하나의 옵션으로 설정할 수 있습니다. + +예시: \ No newline at end of file diff --git a/me-ME/meta.yml b/me-ME/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/me-ME/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/me-ME/step_1.md b/me-ME/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/me-ME/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/mr-IN/meta.yml b/mr-IN/meta.yml new file mode 100644 index 0000000..0b87321 --- /dev/null +++ b/mr-IN/meta.yml @@ -0,0 +1,15 @@ +--- +title: Python turtle सह मजकूर लिहिणे +hero_image: images/banner.png +description: Python turtle सह मजकूर लिहिणे +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: मजकूर लिहिणे diff --git a/mr-IN/step_1.md b/mr-IN/step_1.md new file mode 100644 index 0000000..8bb552b --- /dev/null +++ b/mr-IN/step_1.md @@ -0,0 +1,29 @@ +मजकूर लिहिण्यासाठी तुम्ही turtle चा वापरू शकता. + +```python +turtle.write('Hello!') +``` + +रंगीत मजकूर तयार करण्यासाठी turtle चा रंग सेट करा: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +तुम्ही मजकूराचा font आणि alignment देखील बदलू शकता. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +Font हे एक tuple आहे ज्यामध्ये: + ++ 'Arial', 'Courier', or 'Times New Roman' सारख्या fonts चे नाव ++ Font चा आकार pixels मध्ये ++ Font प्रकार, जो 'normal', 'bold', or 'italic' असू शकतो + +Turtle च्या स्थानाच्या आधारे मजकूर कसे स्थित आहे हे नियंत्रित करणारे alignment सेट करण्यासाठी,`align` मापदंड वापरा. या पर्यायांपैकी एक `align` सेट केले जाऊ शकते: 'left', 'center', 'right' + +उदाहरणः \ No newline at end of file diff --git a/nl-NL/meta.yml b/nl-NL/meta.yml new file mode 100644 index 0000000..af0246e --- /dev/null +++ b/nl-NL/meta.yml @@ -0,0 +1,15 @@ +--- +title: Tekst schrijven met de Python schildpad +hero_image: images/banner.png +description: Tekst schrijven met de Python schildpad +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "grafisch" +technologies: "python, turtle" +steps: + - + title: Tekst schrijven diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md new file mode 100644 index 0000000..61e67ff --- /dev/null +++ b/nl-NL/step_1.md @@ -0,0 +1,29 @@ +Je kunt een turtle (schildpad) gebruiken om tekst te schrijven. + +```python +turtle.write('Hallo!') +``` + +Stel de kleur van de schildpad in om gekleurde tekst te maken: + +```python +turtle.color('deep pink') +turtle.write('Hallo!') +``` + +Je kunt ook het lettertype en de uitlijning van de tekst wijzigen. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hallo!', font=style, align='center') +``` + +Het lettertype is een tuple met: + ++ De naam van het lettertype, zoals 'Arial', 'Courier' of 'Times New Roman' ++ De lettergrootte in pixels ++ Het lettertype, dat 'normal' (normaal), 'bold' (vet) of 'italic' (cursief) kan zijn + +Om de uitlijning in te stellen waar de tekst op basis van de positie van de schildpad wordt geplaatst, gebruik je de parameter `align`. `align` kan op een van deze opties worden ingesteld: 'left' (links), 'center' (gecentreerd), 'right' (rechts) + +Voorbeeld: \ No newline at end of file diff --git a/no-NO/meta.yml b/no-NO/meta.yml new file mode 100644 index 0000000..5ca43c7 --- /dev/null +++ b/no-NO/meta.yml @@ -0,0 +1,15 @@ +--- +title: Skrive tekst med Python skilpadde +hero_image: images/banner.png +description: Skrive tekst med Python skilpadde +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Skrive tekst diff --git a/no-NO/step_1.md b/no-NO/step_1.md new file mode 100644 index 0000000..7ed3dec --- /dev/null +++ b/no-NO/step_1.md @@ -0,0 +1,29 @@ +Du kan bruke en skilpadde til å skrive tekst. + +```python +turtle.write('Hei!') +``` + +Sett skillpaddens farge for å lage farget tekst: + +```python +turtle.color('deep pink') +turtle.write('Hei!') +``` + +Du kan også endre skrift og justering av teksten. + +```python +style = ('Courier', 30, 'italic') +turtle.write ('Hei!', font=style, align='center') +``` + +Skriften er en tuppel som inneholder: + ++ Skriftnavnet som 'Arial', 'Courier' eller 'Times New Roman' ++ Skriftstørrelsen i piksler ++ Skrifttypen, som kan være 'normal', 'bold' (fet) eller 'italics' (kursiv) + +For å angi justeringen som styrer hvordan teksten er plassert basert på turtleposisjonen, bruk `align` parameteren. `align` kan settes til en av disse alternativene: 'left' (venstre), 'center' (sentrert), 'right' (høyre) + +Eksempel: \ No newline at end of file diff --git a/pl-PL/meta.yml b/pl-PL/meta.yml new file mode 100644 index 0000000..f6bc443 --- /dev/null +++ b/pl-PL/meta.yml @@ -0,0 +1,15 @@ +--- +title: Pisanie tekstu za pomocą żółwia w Pythonie +hero_image: images/banner.png +description: Pisanie tekstu za pomocą żółwia w Pythonie +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "grafika" +technologies: "python, żółw" +steps: + - + title: Pisanie tekstu diff --git a/pl-PL/step_1.md b/pl-PL/step_1.md new file mode 100644 index 0000000..b0eed52 --- /dev/null +++ b/pl-PL/step_1.md @@ -0,0 +1,29 @@ +Możesz użyć żółwia, aby napisać tekst. + +```python +turtle.write("Witaj!") +``` + +Ustaw kolor żółwia, aby utworzyć kolorowy tekst: + +```python +turtle.color('deep pink') +turtle.write('Witaj!') +``` + +Możesz także zmienić czcionkę i wyrównanie tekstu. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Witaj!', font=style, align='center') +``` + +Parametrowi font przypisujemy wartość zmiennej style, która zawiera: + ++ Nazwę czcionki, np. 'Arial', 'Courier' lub 'Times New Roman' ++ Rozmiar czcionki w pikselach ++ Wybrany typ czcionki: 'normal', 'bold' lub 'talic' (odpowiednio: normalna, pogrubiona lub kursywa) + +Użyj parametru `align`, aby ustawić sposób wyrównania tekstu względem położenia żółwia. Parametr `align` można ustawić na jedną z następujących opcji: "left", "center", "right" (odpowiednio: lewo, środek, prawo) + +Przykład: \ No newline at end of file diff --git a/pt-BR/meta.yml b/pt-BR/meta.yml new file mode 100644 index 0000000..5708604 --- /dev/null +++ b/pt-BR/meta.yml @@ -0,0 +1,15 @@ +--- +title: Escrevendo texto com o tartaruga do Python +hero_image: images/banner.png +description: Escrevendo texto com o tartaruga do Python +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Escrever o texto diff --git a/pt-BR/step_1.md b/pt-BR/step_1.md new file mode 100644 index 0000000..826a3a3 --- /dev/null +++ b/pt-BR/step_1.md @@ -0,0 +1,29 @@ +Podemos usar a tartaruga para escrever o texto. + +```python +turtle.write ('Olá!') +``` + +Defina a cor da tartaruga para criar um texto colorido: + +```python +turtle.color('deep pink') +turtle.write ('Olá!') +``` + +Também podemos alterar a fonte e o alinhamento do texto. + +```python +style = ('Courier', 30, 'italic') +turtle.write ('Olá!', font=style, align='center') +``` + +A fonte é uma tupla contendo: + ++ O nome da fonte, como 'Arial', 'Courier' ou 'Times New Roman' ++ Definimos o tamanho da fonte em pixels ++ O tipo de fonte, que pode ser 'normal', 'bold'(negrito) ou 'italic'(itálico) + +Para definir o alinhamento que controla como o texto é posicionado com base na posição da tartaruga, use o parâmetro `align(alinhar)`. O `align(alinhar)` pode ser definido para uma destas opções: 'left'(à esquerda), 'center'(centralizado), 'right'(à direita) + +Exemplo: \ No newline at end of file diff --git a/pt-PT/meta.yml b/pt-PT/meta.yml new file mode 100644 index 0000000..e475af4 --- /dev/null +++ b/pt-PT/meta.yml @@ -0,0 +1,15 @@ +--- +title: Escrever texto com tartaruga Python +hero_image: images/banner.png +description: Escrever texto com tartaruga Python +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "gráficos" +technologies: "python, tartaruga" +steps: + - + title: Escrever texto diff --git a/pt-PT/step_1.md b/pt-PT/step_1.md new file mode 100644 index 0000000..f757032 --- /dev/null +++ b/pt-PT/step_1.md @@ -0,0 +1,29 @@ +Podes usar uma tartaruga para escrever texto. + +```python +turtle.write('Olá!') +``` + +Define a cor da tartaruga para criar texto colorido: + +```python +turtle.color('deep pink') +turtle.write('Olá!') +``` + +Também podes alterar a fonte e o alinhamento do texto. + +```python +estilo = ('Courier', 30, 'italic') +turtle.write('Olá!', font=estilo, align= 'center') +``` + +A fonte é uma lista ordenada que contém: + ++ O nome da fonte, como 'Arial', 'Courier' ou 'Times New Roman' ++ O tamanho da fonte em pixeis ++ O tipo de fonte, que pode ser 'normal', 'bold', ou 'italic' + +Para definir o alinhamento que controla a forma como o texto é posicionado com base na posição da tartaruga, utiliza o parâmetro `align`. `align` pode ser configurado para uma destas opções: 'left', 'center', 'right' + +Exemplo: \ No newline at end of file diff --git a/ro-RO/meta.yml b/ro-RO/meta.yml new file mode 100644 index 0000000..56973a3 --- /dev/null +++ b/ro-RO/meta.yml @@ -0,0 +1,15 @@ +--- +title: Scrierea de text cu broasca țestoasă Python +hero_image: images/banner.png +description: Scrierea de text cu broască țestoasă Python +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Scrierea de text diff --git a/ro-RO/step_1.md b/ro-RO/step_1.md new file mode 100644 index 0000000..6ddd618 --- /dev/null +++ b/ro-RO/step_1.md @@ -0,0 +1,29 @@ +Poți folosi o broască țestoasă pentru a scrie text. + +```python +turtle.write('Salut!') +``` + +Setează culoarea țestoasei pentru a crea text colorat: + +```python +turtle.color("deep pink") +turtle.write("Salut!") +``` + +De asemenea, poți schimba fontul și alinierea textului. + +```python +stil = ('Courier', 30, 'italic') +turtle.write ('Salut!', font=stil, align='center') +``` + +Fontul este un tuplu care conține: + ++ Numele fontului, cum ar fi „Arial”, „Courier” sau „Times New Roman” ++ Dimensiunea fontului în pixeli ++ Tipul de font, care poate fi „normal”, „bold” sau „italic” + +Pentru a seta alinierea care controlează modul în care textul este poziționat pe baza poziției țestoasei, folosește parametrul `align`. `align` poate fi setat ca una din următoarele opțiuni: „left”, „center”, „right” + +Exemplu: \ No newline at end of file diff --git a/ru-RU/meta.yml b/ru-RU/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/ru-RU/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/ru-RU/step_1.md b/ru-RU/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/ru-RU/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/si-LK/meta.yml b/si-LK/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/si-LK/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/si-LK/step_1.md b/si-LK/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/si-LK/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/sk-SK/meta.yml b/sk-SK/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/sk-SK/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/sk-SK/step_1.md b/sk-SK/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/sk-SK/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/sr-SP/meta.yml b/sr-SP/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/sr-SP/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/sr-SP/step_1.md b/sr-SP/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/sr-SP/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/sv-SE/meta.yml b/sv-SE/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/sv-SE/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/sv-SE/step_1.md b/sv-SE/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/sv-SE/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/tr-TR/meta.yml b/tr-TR/meta.yml new file mode 100644 index 0000000..f815177 --- /dev/null +++ b/tr-TR/meta.yml @@ -0,0 +1,15 @@ +--- +title: Python turtle modülü ile metin yazma +hero_image: images/banner.png +description: Python turtle modülü ile metin yazma +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Metin yazma diff --git a/tr-TR/step_1.md b/tr-TR/step_1.md new file mode 100644 index 0000000..75360a2 --- /dev/null +++ b/tr-TR/step_1.md @@ -0,0 +1,29 @@ +Metin yazmak için bir turtle modülünü kullanabilirsiniz. + +```python +turtle.write('Merhaba!') +``` + +Renkli metin oluşturmak için turtle modülünün rengini ayarlayın: + +```python +turtle.color('deep pink') +turtle.write('Merhaba!') +``` + +Metnin yazı tipini ve hizalamasını da değiştirebilirsiniz. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Merhaba!', font=style, align='center') +``` + +Bu yazı tipi aşağıdakileri içeren bir demet(Demetler birden fazla veri türünü bir arada bulundurabilen virgüllerle veya parantez ile gösterilen immutable(değiştirilemeyen) veri tipleridir): + ++ 'Arial', 'Courier' veya 'Times New Roman' gibi bir yazı tipi adı ++ Piksel cinsinden yazı tipi boyutu ++ 'Normal', 'kalın' veya 'italik' olabilen yazım türü + +Turtle modülünün konumuna göre metnin nasıl konumlandırıldığını kontrol eden hizalamayı ayarlamak için `align` değişkenini kullanın. `align` değişkeni şu seçeneklerden birine ayarlanabilir: 'left' (sol), 'center' (merkez), 'right' (sağ) + +Örneğin: \ No newline at end of file diff --git a/uk-UA/meta.yml b/uk-UA/meta.yml new file mode 100644 index 0000000..511864f --- /dev/null +++ b/uk-UA/meta.yml @@ -0,0 +1,15 @@ +--- +title: Вивід тексту за допомогою Python turtle +hero_image: images/banner.png +description: Вивід тексту за допомогою Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Вивід тексту diff --git a/uk-UA/step_1.md b/uk-UA/step_1.md new file mode 100644 index 0000000..8ab100e --- /dev/null +++ b/uk-UA/step_1.md @@ -0,0 +1,29 @@ +Ти можеш використовувати turtle для виводу тексту. + +```python +turtle.write('Привіт!') +``` + +Задай колір turtle, щоб створити кольоровий текст: + +```python +turtle.color('deep pink') +turtle.write('Привіт!') +``` + +Ти також можеш змінити шрифт і вирівнювання тексту. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Привіт!', font=style, align='center') +``` + +Шрифт являє собою кортеж (впорядкований скінчений набір елементів), що містить: + ++ Назву шрифту, наприклад, "Arial", "Courier" або "Times New Roman" ++ Розмір шрифту в пікселях ++ Тип шрифту, який може бути "normal" (звичайний), "bold" (жирний) або "italic" (курсив) + +Щоб задати вирівнювання, яке контролює розташування тексту відносно положення turtle, використовуйте параметр `align`. `align` може приймати наступні значення: "left" (ліво), "center" (центр), "right" (право). + +Приклад: \ No newline at end of file diff --git a/vi-VN/meta.yml b/vi-VN/meta.yml new file mode 100644 index 0000000..3583df6 --- /dev/null +++ b/vi-VN/meta.yml @@ -0,0 +1,15 @@ +--- +title: Writing text with Python turtle +hero_image: images/banner.png +description: Writing text with Python turtle +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: Writing text diff --git a/vi-VN/step_1.md b/vi-VN/step_1.md new file mode 100644 index 0000000..e1ad332 --- /dev/null +++ b/vi-VN/step_1.md @@ -0,0 +1,29 @@ +You can use a turtle to write text. + +```python +turtle.write('Hello!') +``` + +Set the turtle's color to create coloured text: + +```python +turtle.color('deep pink') +turtle.write('Hello!') +``` + +You can also change the font and alignment of the text. + +```python +style = ('Courier', 30, 'italic') +turtle.write('Hello!', font=style, align='center') +``` + +The font is a tuple containing: + ++ The font name such as 'Arial', 'Courier', or 'Times New Roman' ++ The font size in pixels ++ The font type, which can be 'normal', 'bold', or 'italic' + +To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right' + +Example: \ No newline at end of file diff --git a/zh-CN/meta.yml b/zh-CN/meta.yml index 8aa849b..f712772 100644 --- a/zh-CN/meta.yml +++ b/zh-CN/meta.yml @@ -1,13 +1,15 @@ -title: 使用 Python 海龟编写文本 +--- +title: 使用 Python turtle(海龟)编辑文本 hero_image: images/banner.png -description: 使用 Python 海龟编写文本 -original_url: +description: 使用 Python turtle(海龟)编辑文本 +original_url: theme: cc-prototype -duration: 1 # 1, 2 or 3 +duration: 1 #1, 2 or 3 listed: false ingredient: true copyedit: false -interests: "图形" -technologies: "python, 海龟" +interests: "graphics" +technologies: "python, turtle" steps: - - title: 编写文本 + - + title: 编辑文本 diff --git a/zh-CN/step_1.md b/zh-CN/step_1.md index 0a0870c..d76f293 100644 --- a/zh-CN/step_1.md +++ b/zh-CN/step_1.md @@ -1,29 +1,29 @@ -你可以使用海龟来编写文本。 +你可以使用turtle(海龟)来写文本 ```python turtle.write('Hello!') ``` -设置海龟颜色来创建彩色文本: +设置turtle的颜色,让你的文本内容五彩斑斓 ```python -turtle.color('deep pink') -turtle.write('Hello!') +turtle.color('deep pink')#设置颜色为深粉红色 +turtle.write('Hello!')#输出文字‘Hello!’ ``` -你还可以更改文本的字体和对齐方式。 +你还可以更改字体以及文本的对齐方式 ```python -style = ('Courier', 30, 'italic') -turtle.write('Hello!', font=style, align='center') +style = ('Courier', 30, 'italic')#设置字体格式为style=(‘Courier’字体,字号30, 'italic'斜体) +turtle.write('Hello!', font=style, align='center')#以style的格式输出"Hello!",位置居中 ``` -字体是一个包含以下元素的元组: -+ 字体名称,如“Arial”、“Courier”或“Times New Roman” -+ 以像素为单位的字体大小 -+ 字体类型,可以是“normal”(普通)、“bold”(粗体)或“italic”(斜体) +字体是一个元组,包括: + ++ 字体格式的名称,比如‘Arial’,‘Courier’,或者‘Times New Roman’。 ++ 字体的大小清晰度 ++ 字体的格式类型,包括正常‘normal’,加粗'bold',或者斜体'italic'。 -要设置控制如何以海龟位置为基准来定位文本的对齐方式,请使用 `align` 参数。`align` 可设置为以下选项之一:“left”(左)、“center”(中)、“right”(右) +用参数`align` ,去设置文本相对于turtle所在位置的对齐方式。 `align` 可以被设置成: 'left', 'center', 'right',对应分别是‘左’,‘中’,‘右’的选择。 -示例: - +示例: \ No newline at end of file diff --git a/zh-TW/meta.yml b/zh-TW/meta.yml new file mode 100644 index 0000000..7bde92c --- /dev/null +++ b/zh-TW/meta.yml @@ -0,0 +1,15 @@ +--- +title: 用Python烏龜寫文字 +hero_image: images/banner.png +description: 用Python烏龜寫文字 +original_url: +theme: cc-prototype +duration: 1 #1, 2 or 3 +listed: false +ingredient: true +copyedit: false +interests: "graphics" +technologies: "python, turtle" +steps: + - + title: 寫文字 diff --git a/zh-TW/step_1.md b/zh-TW/step_1.md new file mode 100644 index 0000000..87366c9 --- /dev/null +++ b/zh-TW/step_1.md @@ -0,0 +1,29 @@ +你可以用烏龜來寫文字。 + +```python +turtle.write('你好!') +``` + +設定烏龜的顏色來創造彩色文字: + +```python +turtle.color('deep pink') +turtle.write('你好!') +``` + +您還可以更改文字的字體和對齊方式。 + +```python +style = ('Courier', 30, 'italic') +turtle.write('你好!', font=style, align='center') +``` + +字體是包含以下內容的元組: + ++ 字體名稱,例如'Arial','Courier'或'Times New Roman' ++ 字體大小,以像素為單位 ++ 字體類型,可以是“正常”,“粗體”或“斜體” + +根據烏龜的位置設置對齊方式來控制文字的位置,請使用 `align` 參數。 `align` 可以設置為以下選項之一:'left','center', 'right' + +範例: \ No newline at end of file