From 6f11a07857b9b39a5a7bfa9e8cf1039d6d7cf5dd Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:02:56 +0000 Subject: [PATCH 001/122] New translations meta.yml (French) --- fr-FR/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 fr-FR/meta.yml diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/fr-FR/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 18bad00730d7e94f0e49622bed06f6d47dc4e2aa Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:02:57 +0000 Subject: [PATCH 002/122] New translations step_1.md (Arabic) --- ar-SA/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ar-SA/step_1.md diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/ar-SA/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 525f7b0f850aa2898b797bbe664c0fd91c7ca03b Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:02:58 +0000 Subject: [PATCH 003/122] New translations step_1.md (Kannada) --- kn-IN/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 kn-IN/step_1.md diff --git a/kn-IN/step_1.md b/kn-IN/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/kn-IN/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 3128dbb9688749d570cd6f2115a4b8a586001813 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:02:59 +0000 Subject: [PATCH 004/122] New translations step_1.md (Welsh) --- cy-GB/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 cy-GB/step_1.md diff --git a/cy-GB/step_1.md b/cy-GB/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/cy-GB/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 712245c15676a66235436d8eee220de25c4280a2 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:00 +0000 Subject: [PATCH 005/122] New translations step_1.md (Hindi) --- hi-IN/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 hi-IN/step_1.md diff --git a/hi-IN/step_1.md b/hi-IN/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/hi-IN/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 0adea05445e64eb56a2688c49e3b66df62346552 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:01 +0000 Subject: [PATCH 006/122] New translations step_1.md (Marathi) --- mr-IN/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 mr-IN/step_1.md diff --git a/mr-IN/step_1.md b/mr-IN/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/mr-IN/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From f4a2d81acaecc3663920633427ffca23066bbee0 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:02 +0000 Subject: [PATCH 007/122] New translations step_1.md (Portuguese, Brazilian) --- pt-BR/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pt-BR/step_1.md diff --git a/pt-BR/step_1.md b/pt-BR/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/pt-BR/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From db49b242bf6f5046903a73d16f1218328e7f909e Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:03 +0000 Subject: [PATCH 008/122] New translations step_1.md (English) --- en-US/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 en-US/step_1.md diff --git a/en-US/step_1.md b/en-US/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/en-US/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 8d6ba8fe971e0f5749f2d307f004b8391aa30d90 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:04 +0000 Subject: [PATCH 009/122] New translations step_1.md (Russian) --- ru-RU/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ru-RU/step_1.md diff --git a/ru-RU/step_1.md b/ru-RU/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/ru-RU/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 575683c627aeb93758bb69ba33d8d6cdf7f811a5 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:05 +0000 Subject: [PATCH 010/122] New translations step_1.md (Polish) --- pl-PL/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pl-PL/step_1.md diff --git a/pl-PL/step_1.md b/pl-PL/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/pl-PL/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 38519b54c82d4de9bb7927523451ceb23ab7cb7a Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:06 +0000 Subject: [PATCH 011/122] New translations step_1.md (Dutch) --- nl-NL/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nl-NL/step_1.md diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/nl-NL/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 5b69d9e91c0ac312b042b0d98a04223f441c95a0 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:07 +0000 Subject: [PATCH 012/122] New translations step_1.md (Japanese) --- ja-JP/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ja-JP/step_1.md diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/ja-JP/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 7967cefd44d8f3f838b2f3977d65daf3e2defd74 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:08 +0000 Subject: [PATCH 013/122] New translations step_1.md (Greek) --- el-GR/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 el-GR/step_1.md diff --git a/el-GR/step_1.md b/el-GR/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/el-GR/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From fa195e7b2cf7dcd81a7af42b08c773c5bc318f96 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:09 +0000 Subject: [PATCH 014/122] New translations step_1.md (French) --- fr-FR/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 fr-FR/step_1.md diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/fr-FR/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From 09c7de6b27262f2089854a1204d555926233507e Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:10 +0000 Subject: [PATCH 015/122] New translations meta.yml (Arabic) --- ar-SA/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ar-SA/meta.yml diff --git a/ar-SA/meta.yml b/ar-SA/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/ar-SA/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 902d9bf26cc1ee694ad098482c76ed46ebbb1558 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:11 +0000 Subject: [PATCH 016/122] New translations meta.yml (Spanish, Latin America) --- es-LA/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 es-LA/meta.yml diff --git a/es-LA/meta.yml b/es-LA/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/es-LA/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 13b59aaa33449fc28bfef423edfa5c5da2bd9f53 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:12 +0000 Subject: [PATCH 017/122] New translations meta.yml (Kannada) --- kn-IN/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 kn-IN/meta.yml diff --git a/kn-IN/meta.yml b/kn-IN/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/kn-IN/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From f1a4dbf5a36396882947c0668db983cd1598b26c Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:12 +0000 Subject: [PATCH 018/122] New translations meta.yml (Welsh) --- cy-GB/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cy-GB/meta.yml diff --git a/cy-GB/meta.yml b/cy-GB/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/cy-GB/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 40a77d2a73e05ab7d331e6e9bdf9ec0fa0ee7b10 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:13 +0000 Subject: [PATCH 019/122] New translations meta.yml (Hindi) --- hi-IN/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hi-IN/meta.yml diff --git a/hi-IN/meta.yml b/hi-IN/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/hi-IN/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From f8a86085103aef7e828336566b62f294d1d60763 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:14 +0000 Subject: [PATCH 020/122] New translations meta.yml (Marathi) --- mr-IN/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mr-IN/meta.yml diff --git a/mr-IN/meta.yml b/mr-IN/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/mr-IN/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 6e00bf1811211fe4c4b86e40cf65d4144c4bef15 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:15 +0000 Subject: [PATCH 021/122] New translations meta.yml (Portuguese, Brazilian) --- pt-BR/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pt-BR/meta.yml diff --git a/pt-BR/meta.yml b/pt-BR/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/pt-BR/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 92b49a47302a975937340463982b80e43f072a51 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:16 +0000 Subject: [PATCH 022/122] New translations meta.yml (English) --- en-US/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 en-US/meta.yml diff --git a/en-US/meta.yml b/en-US/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/en-US/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 5b94481c658f15b901420b035cea3fed4e90f6d7 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:17 +0000 Subject: [PATCH 023/122] New translations meta.yml (Russian) --- ru-RU/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ru-RU/meta.yml diff --git a/ru-RU/meta.yml b/ru-RU/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/ru-RU/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From aa49a1502b4cdfb286b2dcac16649c77ab74300b Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:17 +0000 Subject: [PATCH 024/122] New translations meta.yml (Polish) --- pl-PL/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pl-PL/meta.yml diff --git a/pl-PL/meta.yml b/pl-PL/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/pl-PL/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 5f57e91512f04a550bbfefde844fc87df07e97f5 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:18 +0000 Subject: [PATCH 025/122] New translations meta.yml (Dutch) --- nl-NL/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nl-NL/meta.yml diff --git a/nl-NL/meta.yml b/nl-NL/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/nl-NL/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From abab4d40bd124ec8e8c8654589bb2ac587e841ac Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:19 +0000 Subject: [PATCH 026/122] New translations meta.yml (Japanese) --- ja-JP/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ja-JP/meta.yml diff --git a/ja-JP/meta.yml b/ja-JP/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/ja-JP/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 53d6a53a9f5277cdb7b2e142c7cb90ea81eeacf8 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:20 +0000 Subject: [PATCH 027/122] New translations meta.yml (Greek) --- el-GR/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 el-GR/meta.yml diff --git a/el-GR/meta.yml b/el-GR/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/el-GR/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From ae10e91aa9baa0986d86ff5eab0d076f86124a22 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:03:21 +0000 Subject: [PATCH 028/122] New translations step_1.md (Spanish, Latin America) --- es-LA/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 es-LA/step_1.md diff --git a/es-LA/step_1.md b/es-LA/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/es-LA/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From d1b6025de9803a2ef2b5e451ad5b6aa3a6cf90a4 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:46:58 +0000 Subject: [PATCH 029/122] New translations python-translatable.txt (English) --- en-US/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 en-US/python-translatable.txt diff --git a/en-US/python-translatable.txt b/en-US/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/en-US/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 209dc28186ad0ace6cf8f6372d278975e9869567 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:46:58 +0000 Subject: [PATCH 030/122] New translations python-comments.txt (Dutch) --- nl-NL/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nl-NL/python-comments.txt diff --git a/nl-NL/python-comments.txt b/nl-NL/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/nl-NL/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From fd63de179b6b773ecc6e27005920257e40a36baa Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:46:59 +0000 Subject: [PATCH 031/122] New translations python-translatable.txt (Dutch) --- nl-NL/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nl-NL/python-translatable.txt diff --git a/nl-NL/python-translatable.txt b/nl-NL/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/nl-NL/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From bac278f725f91b37d459fcf12931576fb44dcc93 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:02 +0000 Subject: [PATCH 032/122] New translations python-comments.txt (Polish) --- pl-PL/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pl-PL/python-comments.txt diff --git a/pl-PL/python-comments.txt b/pl-PL/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/pl-PL/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 367c9c2be5f481434b2e345a2e29ac7fac0a5948 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:03 +0000 Subject: [PATCH 033/122] New translations python-translatable.txt (Polish) --- pl-PL/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pl-PL/python-translatable.txt diff --git a/pl-PL/python-translatable.txt b/pl-PL/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/pl-PL/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 94ecc78928eb1f13d8399ed904929f05e7412e37 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:04 +0000 Subject: [PATCH 034/122] New translations python-comments.txt (Russian) --- ru-RU/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ru-RU/python-comments.txt diff --git a/ru-RU/python-comments.txt b/ru-RU/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/ru-RU/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From a8de225bcd8a8df0ff7f51873042a4b9f3225a34 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:04 +0000 Subject: [PATCH 035/122] New translations python-translatable.txt (Russian) --- ru-RU/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ru-RU/python-translatable.txt diff --git a/ru-RU/python-translatable.txt b/ru-RU/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/ru-RU/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 4820e17a645fa694e7b30811a1d0a6f64e86f9fa Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:05 +0000 Subject: [PATCH 036/122] New translations python-comments.txt (English) --- en-US/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 en-US/python-comments.txt diff --git a/en-US/python-comments.txt b/en-US/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/en-US/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 25f117721f3767945aa5c51eb965553ebf57b8f1 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:06 +0000 Subject: [PATCH 037/122] New translations python-comments.txt (Portuguese, Brazilian) --- pt-BR/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pt-BR/python-comments.txt diff --git a/pt-BR/python-comments.txt b/pt-BR/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/pt-BR/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From cda7ab86be0cb0dbd92a20ed2164ae518f54e11e Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:07 +0000 Subject: [PATCH 038/122] New translations python-comments.txt (Japanese) --- ja-JP/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ja-JP/python-comments.txt diff --git a/ja-JP/python-comments.txt b/ja-JP/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/ja-JP/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 3336fa179f3f058154cecc609c2cdaf70f787fe0 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:08 +0000 Subject: [PATCH 039/122] New translations python-translatable.txt (Portuguese, Brazilian) --- pt-BR/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pt-BR/python-translatable.txt diff --git a/pt-BR/python-translatable.txt b/pt-BR/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/pt-BR/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From f3c11600d0df04d2623124c3028aed61892932e8 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:09 +0000 Subject: [PATCH 040/122] New translations python-comments.txt (Marathi) --- mr-IN/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mr-IN/python-comments.txt diff --git a/mr-IN/python-comments.txt b/mr-IN/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/mr-IN/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From bce8a4d2d10b907fb179c58be7b3164f93717b2f Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:10 +0000 Subject: [PATCH 041/122] New translations python-translatable.txt (Marathi) --- mr-IN/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mr-IN/python-translatable.txt diff --git a/mr-IN/python-translatable.txt b/mr-IN/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/mr-IN/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 3a606de28edf205184c125d795a9df94751d2725 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:11 +0000 Subject: [PATCH 042/122] New translations python-comments.txt (Hindi) --- hi-IN/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hi-IN/python-comments.txt diff --git a/hi-IN/python-comments.txt b/hi-IN/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/hi-IN/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 5853653813fa14bda1f4a010161a971b23e0268f Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:12 +0000 Subject: [PATCH 043/122] New translations python-translatable.txt (Hindi) --- hi-IN/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 hi-IN/python-translatable.txt diff --git a/hi-IN/python-translatable.txt b/hi-IN/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/hi-IN/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 2f830e3fef21699a8133324dd185613fdb7866d7 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:13 +0000 Subject: [PATCH 044/122] New translations python-comments.txt (Welsh) --- cy-GB/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cy-GB/python-comments.txt diff --git a/cy-GB/python-comments.txt b/cy-GB/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/cy-GB/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 792adbbcc853b5035b5b21c70569bea0ed91cc57 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:13 +0000 Subject: [PATCH 045/122] New translations python-translatable.txt (Welsh) --- cy-GB/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cy-GB/python-translatable.txt diff --git a/cy-GB/python-translatable.txt b/cy-GB/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/cy-GB/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 28fd7f5224d9fd02954d37bbf4206ed752069518 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:15 +0000 Subject: [PATCH 046/122] New translations python-translatable.txt (Japanese) --- ja-JP/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ja-JP/python-translatable.txt diff --git a/ja-JP/python-translatable.txt b/ja-JP/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/ja-JP/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From a34449ad5878933ebb7863031925fa276728058b Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:16 +0000 Subject: [PATCH 047/122] New translations python-translatable.txt (Greek) --- el-GR/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 el-GR/python-translatable.txt diff --git a/el-GR/python-translatable.txt b/el-GR/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/el-GR/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 513abe0c21cff49742c49db97d6a598ba3a9597b Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:22 +0000 Subject: [PATCH 048/122] New translations python-comments.txt (Greek) --- el-GR/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 el-GR/python-comments.txt diff --git a/el-GR/python-comments.txt b/el-GR/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/el-GR/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 827562f53877f0e4128374e12cd304c30e576d3d Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:25 +0000 Subject: [PATCH 049/122] New translations python-comments.txt (French) --- fr-FR/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 fr-FR/python-comments.txt diff --git a/fr-FR/python-comments.txt b/fr-FR/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/fr-FR/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 0dd6b3582b9837bb0c58eb8e557ad59b70f952ec Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:26 +0000 Subject: [PATCH 050/122] New translations python-translatable.txt (French) --- fr-FR/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fr-FR/python-translatable.txt diff --git a/fr-FR/python-translatable.txt b/fr-FR/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/fr-FR/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 9fce8e76e0a3bcfec468615ddd6b84136aba793e Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:27 +0000 Subject: [PATCH 051/122] New translations python-comments.txt (Arabic) --- ar-SA/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ar-SA/python-comments.txt diff --git a/ar-SA/python-comments.txt b/ar-SA/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/ar-SA/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 5ce7cc6e6bd4b11d7ef0df1601ae13e510607b29 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:28 +0000 Subject: [PATCH 052/122] New translations python-translatable.txt (Arabic) --- ar-SA/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ar-SA/python-translatable.txt diff --git a/ar-SA/python-translatable.txt b/ar-SA/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/ar-SA/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 51494ce976178a613e128b74450fd2d50b836a2d Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:30 +0000 Subject: [PATCH 053/122] New translations python-comments.txt (Kannada) --- kn-IN/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 kn-IN/python-comments.txt diff --git a/kn-IN/python-comments.txt b/kn-IN/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/kn-IN/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 4e53d04ebddc23a42d0637c0550493134c0fc426 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:31 +0000 Subject: [PATCH 054/122] New translations python-translatable.txt (Kannada) --- kn-IN/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 kn-IN/python-translatable.txt diff --git a/kn-IN/python-translatable.txt b/kn-IN/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/kn-IN/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 6474880859255f303ac6ff2746e9346719d00019 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:32 +0000 Subject: [PATCH 055/122] New translations python-comments.txt (Spanish, Latin America) --- es-LA/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 es-LA/python-comments.txt diff --git a/es-LA/python-comments.txt b/es-LA/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/es-LA/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 65efdfba0a936c108f03333d2ac8d96932b370d6 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:47:33 +0000 Subject: [PATCH 056/122] New translations python-translatable.txt (Spanish, Latin America) --- es-LA/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 es-LA/python-translatable.txt diff --git a/es-LA/python-translatable.txt b/es-LA/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/es-LA/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 04631f0551516ef9a327f07ab2cde2178b7c1179 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Mar 2022 13:21:51 +0000 Subject: [PATCH 057/122] New translations python-comments.txt (Arabic) --- ar-SA/python-comments.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ar-SA/python-comments.txt b/ar-SA/python-comments.txt index 463c3c4..ff4d693 100644 --- a/ar-SA/python-comments.txt +++ b/ar-SA/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +اصنع عين -Outer eye +العين الخارجية -Iris +قزحية -Pupil +طالب -Catchlight 1 with opacity +Catchlight 1 مع عتامه -Catchlight 2 with opacity +Catchlight 2 مع عتامه -Move screen to the middle +حرك الشاشة الى المنتصف -Head +الراس -Saves current screen settings +حفظ اعدادات الشاشة الحالية -Move screen to the left for left eye +حرك الشاشة إلى اليسار للعين اليسرى -Restores previous screen settings (removes the eye translation and rotation) +استعادة إعدادات الشاشة السابقة (ازالة ترجمة العين والدوران) -Move screen to the right for right eye +حرك الشاشة إلى اليمين للعين اليمنى From 5fb3f068767c8ccb8c9388f9db08177eed3ae765 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Mar 2022 13:22:02 +0000 Subject: [PATCH 058/122] New translations python-translatable.txt (Arabic) --- ar-SA/python-translatable.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ar-SA/python-translatable.txt b/ar-SA/python-translatable.txt index 33339ff..5dcbd84 100644 --- a/ar-SA/python-translatable.txt +++ b/ar-SA/python-translatable.txt @@ -1,9 +1,9 @@ -eye +عين -WHITE +أبيض -BLUE +أزرق -BLACK +أسود -draw +ارسم From 61f183eec450234a6e237ac62cb6e2d6c6f8c93e Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Mar 2022 13:22:04 +0000 Subject: [PATCH 059/122] New translations meta.yml (Arabic) --- ar-SA/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ar-SA/meta.yml b/ar-SA/meta.yml index 5cc3d77..8ce09d4 100644 --- a/ar-SA/meta.yml +++ b/ar-SA/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: مصفوفة الدفع و النوافذ المنبثقة hero_image: images/banner.png -description: push and pop matrix +description: مصفوفة الدفع و النوافذ المنبثقة version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: مصفوفة الدفع و النوافذ المنبثقة From fe0c4f1de3034d139f686553b477224c991db11f Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 15 Mar 2022 13:22:16 +0000 Subject: [PATCH 060/122] New translations step_1.md (Arabic) --- ar-SA/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md index 55c9d49..c7f6fe7 100644 --- a/ar-SA/step_1.md +++ b/ar-SA/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +عند استخدام `rotate ()` و `translate ()`، يمكنك حفظ إعدادات الإحداثيات باستخدام وظيفة `push_matrix ()` ثم استعادة إعدادات الإحداثي هذه باستخدام وظيفة `pop_matrix ()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +في هذا المثال، لإنشاء عينين دائرتين، يتم حفظ الإعدادات قبل رسم أي من العينين. تتم ترجمة الشاشة وتدويرها قبل رسم العين الأولى ثم استعادة الإعدادات قبل رسم العين الثانية. --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# اصنع عين fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From 63c520a53341333605a6f679f27132283e75fb63 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 24 Mar 2022 13:45:00 +0000 Subject: [PATCH 061/122] New translations meta.yml (French) --- fr-FR/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml index 5cc3d77..7a947a8 100644 --- a/fr-FR/meta.yml +++ b/fr-FR/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: push et pop matrix hero_image: images/banner.png -description: push and pop matrix +description: push et pop matrix version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Push et pop matrix From 0a7929eca95705f42970dc6cdced2e02f375fb9c Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 24 Mar 2022 13:45:05 +0000 Subject: [PATCH 062/122] New translations python-comments.txt (French) --- fr-FR/python-comments.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fr-FR/python-comments.txt b/fr-FR/python-comments.txt index 463c3c4..7db7909 100644 --- a/fr-FR/python-comments.txt +++ b/fr-FR/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Créer un œil -Outer eye +Oeil extérieur Iris -Pupil +Pupille -Catchlight 1 with opacity +Reflet spéculaire 1 avec opacité -Catchlight 2 with opacity +Reflet spéculaire 2 avec opacité -Move screen to the middle +Déplacer l'écran vers le milieu -Head +Tête -Saves current screen settings +Enregistre les paramètres d'écran actuels -Move screen to the left for left eye +Déplacer l'écran vers la gauche pour l'œil gauche -Restores previous screen settings (removes the eye translation and rotation) +Restaure les paramètres d'écran précédents (supprime la translation et la rotation des yeux) -Move screen to the right for right eye +Déplacer l'écran vers la droite pour l'œil droit From cbd928eba745f743d47793d12fabac6245a342e8 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 24 Mar 2022 13:45:18 +0000 Subject: [PATCH 063/122] New translations python-translatable.txt (French) --- fr-FR/python-translatable.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fr-FR/python-translatable.txt b/fr-FR/python-translatable.txt index 33339ff..85e0377 100644 --- a/fr-FR/python-translatable.txt +++ b/fr-FR/python-translatable.txt @@ -1,9 +1,9 @@ -eye +œil -WHITE +BLANC -BLUE +BLEU -BLACK +NOIR -draw +dessiner From 657471cc6522f0d0699ad5da94fe83f7dbcfd039 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 24 Mar 2022 13:45:34 +0000 Subject: [PATCH 064/122] New translations step_1.md (French) --- fr-FR/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md index 55c9d49..ae9c0ae 100644 --- a/fr-FR/step_1.md +++ b/fr-FR/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Lorsque tu utilises les fonctions `rotate()` et `translate()` , tu peux enregistrer les paramètres de coordonnées à l'aide de la fonction `push_matrix()` , puis restaurer ces paramètres de coordonnées à l'aide de la fonction `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +Dans cet exemple, pour créer deux yeux rotatifs, les paramètres sont enregistrés avant que l'un ou l'autre des yeux ne soit dessiné. L'écran est translaté et pivoté avant que le premier œil ne soit dessiné puis les paramètres restaurés avant que le deuxième œil ne soit dessiné. --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# Créer un œil fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From d585d67f9e50d08b271ef00e3c7da3567e33b25a Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 14 Apr 2022 10:49:18 +0100 Subject: [PATCH 065/122] New translations python-comments.txt (Spanish, Latin America) --- es-LA/python-comments.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/es-LA/python-comments.txt b/es-LA/python-comments.txt index 463c3c4..0fd3b21 100644 --- a/es-LA/python-comments.txt +++ b/es-LA/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Crea un ojo -Outer eye +Exterior del ojo Iris -Pupil +Pupila -Catchlight 1 with opacity +Brillo ocular 1 con opacidad -Catchlight 2 with opacity +Brillo ocular 2 con opacidad -Move screen to the middle +Mueve la pantalla al centro -Head +Cabeza -Saves current screen settings +Guarda la configuración de pantalla actual -Move screen to the left for left eye +Mueve la pantalla a la izquierda para el ojo izquierdo -Restores previous screen settings (removes the eye translation and rotation) +Restaura la configuración de pantalla anterior (elimina la traslación y rotación de los ojos) -Move screen to the right for right eye +Mueve la pantalla a la derecha para el ojo derecho From 696d742d21ba0680971a5c946221f84f335dc6bc Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 14 Apr 2022 10:49:24 +0100 Subject: [PATCH 066/122] New translations step_1.md (Spanish, Latin America) --- es-LA/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-LA/step_1.md b/es-LA/step_1.md index 55c9d49..d36b3f9 100644 --- a/es-LA/step_1.md +++ b/es-LA/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Al utilizar las funciones `rotate()` y `translate()`, puedes guardar la configuración de coordenadas utilizando la función `push_matrix()` y luego restaurar esa configuración de coordenadas utilizando la función `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +En el ejemplo a continuación, para crear dos ojos giratorios, la configuración se guarda antes de dibujar cualquiera de los ojos. La pantalla se traslada y gira antes de que se dibuje el primer ojo y luego se restablece la configuración antes de que se dibuje el segundo ojo. --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# Crea un ojo fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From 5de79188e7bbc3830c9de638e55dc5e1eb04c909 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 14 Apr 2022 10:49:34 +0100 Subject: [PATCH 067/122] New translations meta.yml (Spanish, Latin America) --- es-LA/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-LA/meta.yml b/es-LA/meta.yml index 5cc3d77..5c8e14c 100644 --- a/es-LA/meta.yml +++ b/es-LA/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: push y pop matrix hero_image: images/banner.png -description: push and pop matrix +description: push y pop matrix version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Push y pop matrix From 66511b1f8a275ec92ec5d855ef6eb0e27b336586 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 14 Apr 2022 10:49:55 +0100 Subject: [PATCH 068/122] New translations python-translatable.txt (Spanish, Latin America) --- es-LA/python-translatable.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/es-LA/python-translatable.txt b/es-LA/python-translatable.txt index 33339ff..bfd67b9 100644 --- a/es-LA/python-translatable.txt +++ b/es-LA/python-translatable.txt @@ -1,9 +1,9 @@ -eye +ojo -WHITE +BLANCO -BLUE +AZUL -BLACK +NEGRO draw From a5cb8aa1ac06e05349258da8be3d91443e46dd94 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Sat, 23 Apr 2022 15:06:14 +0100 Subject: [PATCH 069/122] New translations meta.yml (Dutch) --- nl-NL/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nl-NL/meta.yml b/nl-NL/meta.yml index 5cc3d77..29edef7 100644 --- a/nl-NL/meta.yml +++ b/nl-NL/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: push en pop matrix hero_image: images/banner.png -description: push and pop matrix +description: push en pop matrix version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Push en pop matrix From bb222cfb1bb8384904d6de3c54f53a30f55c2a28 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Sat, 23 Apr 2022 15:06:15 +0100 Subject: [PATCH 070/122] New translations step_1.md (Dutch) --- nl-NL/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md index 55c9d49..2d27dec 100644 --- a/nl-NL/step_1.md +++ b/nl-NL/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Als je de functies `rotate()` en `translate()` gebruikt, kunt je de coördinaatinstellingen opslaan met de functie `push_matrix()` en vervolgens die coördinaatinstellingen herstellen met de functie `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +Om in dit voorbeeld twee roterende ogen te maken, worden de instellingen opgeslagen voordat een van de ogen wordt getekend. Het scherm wordt verschoven (translate) en gedraaid (rotate) voordat het eerste oog wordt getekend, waarna de instellingen worden hersteld voordat het tweede oog wordt getekend. --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# Maak een oog fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From 617394c8a9714120ed29dfc522c8b99556f0975c Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Sat, 23 Apr 2022 15:06:16 +0100 Subject: [PATCH 071/122] New translations python-comments.txt (Dutch) --- nl-NL/python-comments.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nl-NL/python-comments.txt b/nl-NL/python-comments.txt index 463c3c4..719175e 100644 --- a/nl-NL/python-comments.txt +++ b/nl-NL/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Maak een oog -Outer eye +Buitenkant oog Iris Pupil -Catchlight 1 with opacity +Lichtinval 1 met doorzichtigheid -Catchlight 2 with opacity +Lichtinval 2 met doorzichtigheid -Move screen to the middle +Scherm naar het midden verplaatsen -Head +Hoofd -Saves current screen settings +Slaat huidige scherminstellingen op -Move screen to the left for left eye +Verplaats het scherm naar links voor het linkeroog -Restores previous screen settings (removes the eye translation and rotation) +Herstel vorige scherminstellingen (verwijdert de locatie en draaiing van het oog) -Move screen to the right for right eye +Verplaats het scherm naar rechts voor het rechteroog From b478cb43b8f238cb36ffb24abbf3209c55b0315d Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Sat, 23 Apr 2022 15:06:17 +0100 Subject: [PATCH 072/122] New translations python-translatable.txt (Dutch) --- nl-NL/python-translatable.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nl-NL/python-translatable.txt b/nl-NL/python-translatable.txt index 33339ff..c766eaa 100644 --- a/nl-NL/python-translatable.txt +++ b/nl-NL/python-translatable.txt @@ -1,9 +1,9 @@ -eye +oog -WHITE +WIT -BLUE +BLAUW -BLACK +ZWART draw From 7c9454069abe9e22b73f4db080eb24b9095b18ab Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 23 May 2022 16:33:05 +0100 Subject: [PATCH 073/122] New translations python-comments.txt (Greek) --- el-GR/python-comments.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/el-GR/python-comments.txt b/el-GR/python-comments.txt index 463c3c4..7950b96 100644 --- a/el-GR/python-comments.txt +++ b/el-GR/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Δημιούργησε ένα μάτι -Outer eye +Εξωτερικό μάτι -Iris +Ίριδα -Pupil +Κόρη -Catchlight 1 with opacity +Λαμπύρισμα 1 με αδιαφάνεια -Catchlight 2 with opacity +Λαμπύρισμα 2 με αδιαφάνεια -Move screen to the middle +Μετακίνησε την οθόνη στο κέντρο -Head +Κεφάλι -Saves current screen settings +Αποθηκεύει τις τρέχουσες ρυθμίσεις οθόνης -Move screen to the left for left eye +Μετακίνησε την οθόνη προς τα αριστερά για το αριστερό μάτι -Restores previous screen settings (removes the eye translation and rotation) +Επαναφέρει τις προηγούμενες ρυθμίσεις οθόνης (καταργεί τη μεταφορά και την περιστροφή του ματιού) -Move screen to the right for right eye +Μετακίνησε την οθόνη προς τα δεξιά για το δεξιό μάτι From ed1bd369f37e301da1d3cc49ddbf8c219ac71894 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 23 May 2022 16:33:26 +0100 Subject: [PATCH 074/122] New translations meta.yml (Greek) --- el-GR/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/el-GR/meta.yml b/el-GR/meta.yml index 5cc3d77..9c3aba0 100644 --- a/el-GR/meta.yml +++ b/el-GR/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: αποθήκευση και επαναφορά πίνακα hero_image: images/banner.png -description: push and pop matrix +description: αποθήκευση και επαναφορά πίνακα version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Αποθήκευση και επαναφορά πίνακα From 396aa5b7403b4927e58191693de278aaee69cd90 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Mon, 23 May 2022 16:33:38 +0100 Subject: [PATCH 075/122] New translations step_1.md (Greek) --- el-GR/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/el-GR/step_1.md b/el-GR/step_1.md index 55c9d49..26fdcad 100644 --- a/el-GR/step_1.md +++ b/el-GR/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Όταν χρησιμοποιείς τις συναρτήσεις `rotate()` και `translate()`, μπορείς να αποθηκεύεις τις ρυθμίσεις των συντεταγμένων χρησιμοποιώντας τη συνάρτηση `push_matrix()` και στη συνέχεια να επαναφέρεις αυτές τις ρυθμίσεις των συντεταγμένων χρησιμοποιώντας τη συνάρτηση `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +Σε αυτό το παράδειγμα, για να δημιουργήσεις δύο περιστρεφόμενα μάτια, οι ρυθμίσεις αποθηκεύονται προτού σχεδιαστεί κάποιο από τα μάτια. Η οθόνη μετακινείται και περιστρέφεται πριν σχεδιαστεί το πρώτο μάτι και στη συνέχεια επαναφέρουμε τις ρυθμίσεις πριν σχεδιαστεί το δεύτερο μάτι. --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# Δημιούργησε ένα μάτι fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From 101365ef68cb547259065d70ed9a4d36ae89fce6 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 5 Jul 2022 10:38:26 +0100 Subject: [PATCH 076/122] New translations python-comments.txt (Welsh) --- cy-GB/python-comments.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cy-GB/python-comments.txt b/cy-GB/python-comments.txt index 463c3c4..f3b3e0d 100644 --- a/cy-GB/python-comments.txt +++ b/cy-GB/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Creu llygad -Outer eye +Tu allan y llygad Iris -Pupil +Cannwyll llygad -Catchlight 1 with opacity +Goleubwynt 1 gydag afloywder -Catchlight 2 with opacity +Goleubwynt 2 gydag afloywder -Move screen to the middle +Symud y sgrin i'r canol -Head +Pen -Saves current screen settings +Cadw'r gosodiadau sgrin presennol -Move screen to the left for left eye +Symud y sgrin i'r chwith ar gyfer y llygad chwith -Restores previous screen settings (removes the eye translation and rotation) +Adfer y gosodiadau sgrin blaenorol (tynnu trosiad a chylchdroad y llygad) -Move screen to the right for right eye +Symud y sgrin i'r dde ar gyfer y llygad dde From 60148367f3d8261afff075f51195ca08be8934cb Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 5 Jul 2022 10:38:38 +0100 Subject: [PATCH 077/122] New translations step_1.md (Welsh) --- cy-GB/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cy-GB/step_1.md b/cy-GB/step_1.md index 55c9d49..d509f22 100644 --- a/cy-GB/step_1.md +++ b/cy-GB/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Wrth ddefnyddio'r swyddogaethau `rotate()` a `translate()` fe allwch chi gadw'r gosodiadau cyfesurynnau drwy ddefnyddio'r swyddogaeth `push_matrix()`, ac yna adfer y gosodiadau hynny drwy ddefnyddio'r swyddogaeth `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +Yn yr enghraifft hon, i greu dwy lygad sy'n cylchdroi, mae'r gosodiadau'n cael eu cadw cyn llunio unrhyw lygad. Mae'r sgrin yn cael ei throsi a'i chylchdroi cyn llunio'r llygad gyntaf, yna mae'r gosodiadau'n cael eu hadfer cyn llunio'r ail lygad. --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# Creu llygad fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From f0f07fe7f16f377c5248152f65dbdb605667ba2d Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 5 Jul 2022 10:38:57 +0100 Subject: [PATCH 078/122] New translations meta.yml (Welsh) --- cy-GB/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cy-GB/meta.yml b/cy-GB/meta.yml index 5cc3d77..666118f 100644 --- a/cy-GB/meta.yml +++ b/cy-GB/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: matrics gwthio a phopian hero_image: images/banner.png -description: push and pop matrix +description: matrics gwthio a phopian version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Matrics gwthio a phopian From 83c6e8fb5d5f27215bae3c4730d318d05cb7a7d9 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Tue, 5 Jul 2022 10:39:18 +0100 Subject: [PATCH 079/122] New translations python-translatable.txt (Welsh) --- cy-GB/python-translatable.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cy-GB/python-translatable.txt b/cy-GB/python-translatable.txt index 33339ff..0fe5ef3 100644 --- a/cy-GB/python-translatable.txt +++ b/cy-GB/python-translatable.txt @@ -1,9 +1,9 @@ -eye +llygad -WHITE +GWYN -BLUE +GLAS -BLACK +DU draw From 676de55cbacfe557600e0fc03359944a3e69e66b Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Wed, 31 Aug 2022 12:16:26 +0100 Subject: [PATCH 080/122] New translations python-comments.txt (Japanese) --- ja-JP/python-comments.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ja-JP/python-comments.txt b/ja-JP/python-comments.txt index 463c3c4..a332f5f 100644 --- a/ja-JP/python-comments.txt +++ b/ja-JP/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +目を作成する -Outer eye +目の形 -Iris +虹彩 -Pupil +瞳 -Catchlight 1 with opacity +不透明度設定を使った光の当たり方の表現1 -Catchlight 2 with opacity +不透明度設定を使った光の当たり方の表現2 -Move screen to the middle +画面を中央に移動する -Head +頭 -Saves current screen settings +現在の画面設定を保存する -Move screen to the left for left eye +左目を描くため画面を左に移動する -Restores previous screen settings (removes the eye translation and rotation) +元の画面設定を復元する(目の描画のための平行移動と回転を取り消す) -Move screen to the right for right eye +右目を描くため画面を右に移動する From af0cbaebca269ef76ea4e1fc6fe912cd77009d7a Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Wed, 31 Aug 2022 12:16:45 +0100 Subject: [PATCH 081/122] New translations meta.yml (Japanese) --- ja-JP/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ja-JP/meta.yml b/ja-JP/meta.yml index 5cc3d77..f8f497f 100644 --- a/ja-JP/meta.yml +++ b/ja-JP/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: マトリックスの保存と復元 hero_image: images/banner.png -description: push and pop matrix +description: マトリックスの保存と復元 version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: マトリックスの保存と復元 From 9ae84a51937373c643363251343adf0cc3948d8e Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Wed, 31 Aug 2022 12:16:55 +0100 Subject: [PATCH 082/122] New translations step_1.md (Japanese) --- ja-JP/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md index 55c9d49..ea0e51f 100644 --- a/ja-JP/step_1.md +++ b/ja-JP/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +`rotate()`および`translate()`関数を使用するときに、`push_matrix()`関数を使用して座標設定を保存し、`pop_matrix()`関数を使用して保存した座標設定を復元できます。 -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +この例では、回転する2つの目を作成するために、片方の目を描画する前に設定を保存しています。 最初の目を描画する前に画面を平行移動および回転し、2番目の目を描画する前に設定を復元しています。 --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# 目を作成する fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From ca429eab3a5bf15b5ffde0d4a5aa86ded1939b47 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 3 Nov 2022 19:01:59 +0000 Subject: [PATCH 083/122] New translations python-comments.txt (Ukrainian) --- uk-UA/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 uk-UA/python-comments.txt diff --git a/uk-UA/python-comments.txt b/uk-UA/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/uk-UA/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 3f47152bbe0fe19bfcac7671b7d39bcae199be20 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 3 Nov 2022 19:02:22 +0000 Subject: [PATCH 084/122] New translations meta.yml (Ukrainian) --- uk-UA/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 uk-UA/meta.yml diff --git a/uk-UA/meta.yml b/uk-UA/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/uk-UA/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From 23417b7cdc3866846410caa46d7cb5c726b37767 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 3 Nov 2022 19:02:33 +0000 Subject: [PATCH 085/122] New translations step_1.md (Ukrainian) --- uk-UA/step_1.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 uk-UA/step_1.md diff --git a/uk-UA/step_1.md b/uk-UA/step_1.md new file mode 100644 index 0000000..55c9d49 --- /dev/null +++ b/uk-UA/step_1.md @@ -0,0 +1,35 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): + +# Create an eye + fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): + + global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) + + background(WHITE) translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) + +--- /code --- + From d6cab1f258adce747f990d9460bd89ed414145ce Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 3 Nov 2022 19:02:37 +0000 Subject: [PATCH 086/122] New translations python-translatable.txt (Ukrainian) --- uk-UA/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 uk-UA/python-translatable.txt diff --git a/uk-UA/python-translatable.txt b/uk-UA/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/uk-UA/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 97933442ae2ea6920a34f8d2e6bf079abf09f289 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 23 Feb 2023 09:39:11 +0000 Subject: [PATCH 087/122] New translations meta.yml (Ukrainian) --- uk-UA/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uk-UA/meta.yml b/uk-UA/meta.yml index 5cc3d77..a7a1953 100644 --- a/uk-UA/meta.yml +++ b/uk-UA/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: матриця push та pop hero_image: images/banner.png -description: push and pop matrix +description: матриця push та pop version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Матриця push та pop From 0c4874c4cb175c87a63110c28cfc2134ed45db01 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 23 Feb 2023 09:39:21 +0000 Subject: [PATCH 088/122] New translations step_1.md (Ukrainian) --- uk-UA/step_1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uk-UA/step_1.md b/uk-UA/step_1.md index 55c9d49..083d661 100644 --- a/uk-UA/step_1.md +++ b/uk-UA/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Використовуючи функції `rotate()` та `translate()`, ти можеш зберегти налаштування координат, скориставшись функцією `push_matrix()`, а потім використати ці налаштування координат за допомогою функції `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +У цьому прикладі, для створення двох очей, які обертаються, налаштування зберігаються до того, як будь-яке з очей буде намальовано. Екран перекладається та обертається до того, як буде намальоване перше око, потім налаштування відновлюються до того, як буде намальоване друге око. --- code --- --- @@ -10,7 +10,7 @@ language: python def eye(): -# Create an eye +# Створення ока fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity def draw(): From bbbefaeb7983cc1a12e8340a11845a880ad3db49 Mon Sep 17 00:00:00 2001 From: majamanojlovic <49232422+majamanojlovic@users.noreply.github.com> Date: Thu, 23 Feb 2023 09:39:31 +0000 Subject: [PATCH 089/122] New translations python-comments.txt (Ukrainian) --- uk-UA/python-comments.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/uk-UA/python-comments.txt b/uk-UA/python-comments.txt index 463c3c4..8ad01df 100644 --- a/uk-UA/python-comments.txt +++ b/uk-UA/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Створення ока -Outer eye +Зовнішня частина ока -Iris +Райдужна оболонка -Pupil +Зіниця -Catchlight 1 with opacity +Світлові відблиски 1 з прозорістю -Catchlight 2 with opacity +Світлові відблиски 2 з прозорістю -Move screen to the middle +Переміщення екрана в центр -Head +Голова -Saves current screen settings +Зберігає поточні налаштування екрана -Move screen to the left for left eye +Переміщення екрана вліво для лівого ока -Restores previous screen settings (removes the eye translation and rotation) +Відновлення попередніх налаштувань екрана (видалення перекладу та обертання очей) -Move screen to the right for right eye +Переміщення екрана вправо для правого ока From 6ad4b2929cd1cb564d8ade13ae0314956f4abfd9 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:35 +0100 Subject: [PATCH 090/122] New translations meta.yml (Portuguese, Brazilian) --- pt-BR/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pt-BR/meta.yml b/pt-BR/meta.yml index 5cc3d77..a49b1aa 100644 --- a/pt-BR/meta.yml +++ b/pt-BR/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: matriz "push" e "pop" hero_image: images/banner.png -description: push and pop matrix +description: matriz "push" e "pop" version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Matriz "push" e "pop" From 6fde17be2b4cf12a7accc898b0d71b5c683e68e8 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:38 +0100 Subject: [PATCH 091/122] New translations meta.yml (Spanish, Latin America) --- es-LA/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-LA/meta.yml b/es-LA/meta.yml index 5c8e14c..903adbe 100644 --- a/es-LA/meta.yml +++ b/es-LA/meta.yml @@ -1,11 +1,11 @@ --- -title: push y pop matrix +title: matrix push y pop hero_image: images/banner.png -description: push y pop matrix +description: matrix push y pop version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push y pop matrix + title: Matrix push y pop From 7623a2b1201bb832e60eec9e32e7f03a15747ab8 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:40 +0100 Subject: [PATCH 092/122] New translations step_1.md (French) --- fr-FR/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md index ae9c0ae..b4a27d1 100644 --- a/fr-FR/step_1.md +++ b/fr-FR/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Créer un œil - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From cb694f73981061556b97627630c464672ec654fa Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:40 +0100 Subject: [PATCH 093/122] New translations step_1.md (Arabic) --- ar-SA/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md index c7f6fe7..a0d9483 100644 --- a/ar-SA/step_1.md +++ b/ar-SA/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# اصنع عين - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 0ff025299bef88a88c2daa477f7d873adbb485f8 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:42 +0100 Subject: [PATCH 094/122] New translations step_1.md (Greek) --- el-GR/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/el-GR/step_1.md b/el-GR/step_1.md index 26fdcad..ac09c54 100644 --- a/el-GR/step_1.md +++ b/el-GR/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Δημιούργησε ένα μάτι - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 6f6d09bb20913547448b277fa9ab3b5820ef4900 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:43 +0100 Subject: [PATCH 095/122] New translations step_1.md (Japanese) --- ja-JP/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md index ea0e51f..d4f7617 100644 --- a/ja-JP/step_1.md +++ b/ja-JP/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# 目を作成する - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From a675cb725465c74f11a2927de11bf49a28c7f6fc Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:44 +0100 Subject: [PATCH 096/122] New translations step_1.md (Dutch) --- nl-NL/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md index 2d27dec..47247d0 100644 --- a/nl-NL/step_1.md +++ b/nl-NL/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Maak een oog - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 5ab767aebf45cdd3f65106038162eb634ddc98b4 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:45 +0100 Subject: [PATCH 097/122] New translations step_1.md (Polish) --- pl-PL/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/pl-PL/step_1.md b/pl-PL/step_1.md index 55c9d49..10ce0b6 100644 --- a/pl-PL/step_1.md +++ b/pl-PL/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Create an eye - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From d694e53631134ffe6efdea4e382a50eecf75d802 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:46 +0100 Subject: [PATCH 098/122] New translations step_1.md (Russian) --- ru-RU/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/ru-RU/step_1.md b/ru-RU/step_1.md index 55c9d49..10ce0b6 100644 --- a/ru-RU/step_1.md +++ b/ru-RU/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Create an eye - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 715b34b89c2824f017341480230195908d83b751 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:47 +0100 Subject: [PATCH 099/122] New translations step_1.md (Ukrainian) --- uk-UA/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/uk-UA/step_1.md b/uk-UA/step_1.md index 083d661..1c3a6da 100644 --- a/uk-UA/step_1.md +++ b/uk-UA/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Створення ока - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 05ac58bcd5976e9f2a52d785ac603d6bcc9db053 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:48 +0100 Subject: [PATCH 100/122] New translations step_1.md (English) --- en-US/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/en-US/step_1.md b/en-US/step_1.md index 55c9d49..10ce0b6 100644 --- a/en-US/step_1.md +++ b/en-US/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Create an eye - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 31c671c2976921178b344b8a494881d0f8efd142 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:49 +0100 Subject: [PATCH 101/122] New translations step_1.md (Portuguese, Brazilian) --- pt-BR/step_1.md | 53 +++++++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/pt-BR/step_1.md b/pt-BR/step_1.md index 55c9d49..4a882d0 100644 --- a/pt-BR/step_1.md +++ b/pt-BR/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Ao usar as funções `rotate()` e `translate()`, você pode salvar as coordenadas definidas usando a função `push_matrix()` e recuperá-las usando a função `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +Neste exemplo, para criar dois olhos rotativos, as definições são salvas antes que qualquer um dos olhos seja desenhado. A tela é transladada e rotacionada antes que o primeiro olho seja desenhado e as definições são restauradas antes que o segundo olho seja desenhado. --- code --- --- @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Create an eye - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From a09bb825c431c35389e19eb69f5bd14675eb7e13 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:50 +0100 Subject: [PATCH 102/122] New translations step_1.md (Marathi) --- mr-IN/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/mr-IN/step_1.md b/mr-IN/step_1.md index 55c9d49..10ce0b6 100644 --- a/mr-IN/step_1.md +++ b/mr-IN/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Create an eye - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 68003b4a412c7337fccbd4b7866e1459d78f3b92 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:51 +0100 Subject: [PATCH 103/122] New translations step_1.md (Hindi) --- hi-IN/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/hi-IN/step_1.md b/hi-IN/step_1.md index 55c9d49..10ce0b6 100644 --- a/hi-IN/step_1.md +++ b/hi-IN/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Create an eye - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 7296fdbd1c4a4083d7fd700e5007472bca0bf0a3 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:52 +0100 Subject: [PATCH 104/122] New translations step_1.md (Welsh) --- cy-GB/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/cy-GB/step_1.md b/cy-GB/step_1.md index d509f22..e73bc5b 100644 --- a/cy-GB/step_1.md +++ b/cy-GB/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Creu llygad - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 5c18c33c1bb7db194bf803416215e8e1aa891a4a Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:53 +0100 Subject: [PATCH 105/122] New translations step_1.md (Kannada) --- kn-IN/step_1.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/kn-IN/step_1.md b/kn-IN/step_1.md index 55c9d49..10ce0b6 100644 --- a/kn-IN/step_1.md +++ b/kn-IN/step_1.md @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Create an eye - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From 04f3f564e73280e266dc2a82e27b6005a9380d37 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:21:54 +0100 Subject: [PATCH 106/122] New translations step_1.md (Spanish, Latin America) --- es-LA/step_1.md | 53 +++++++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/es-LA/step_1.md b/es-LA/step_1.md index d36b3f9..60d40c8 100644 --- a/es-LA/step_1.md +++ b/es-LA/step_1.md @@ -1,6 +1,6 @@ -Al utilizar las funciones `rotate()` y `translate()`, puedes guardar la configuración de coordenadas utilizando la función `push_matrix()` y luego restaurar esa configuración de coordenadas utilizando la función `pop_matrix()`. +Al utilizar las funciones `rotar()` y `trasladar()`, puedes guardar la configuración de coordenadas utilizando la función `push_matrix()` y luego restaurar esa configuración de coordenadas utilizando la función `pop_matrix()`. -En el ejemplo a continuación, para crear dos ojos giratorios, la configuración se guarda antes de dibujar cualquiera de los ojos. La pantalla se traslada y gira antes de que se dibuje el primer ojo y luego se restablece la configuración antes de que se dibuje el segundo ojo. +En este ejemplo, para crear dos ojos giratorios, la configuración se guarda antes de dibujar cualquiera de los ojos. La pantalla se traslada y gira antes de que se dibuje el primer ojo y luego se restablece la configuración antes de que se dibuje el segundo ojo. --- code --- --- @@ -8,28 +8,33 @@ language: python --- -def eye(): - -# Crea un ojo - fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity - -def draw(): - - global BLUE, BLACK, WHITE - - BLUE = color(1, 32, 100) BLACK = color(0, 0, 0) WHITE = color(255, 255, 255) - - background(WHITE) translate(width/2, height/2) # Move screen to the middle - - stroke(BLACK) ellipse(0, 0, 300, 300) # Head - - push_matrix() # Saves current screen settings - - translate(-100, 0) # Move screen to the left for left eye for i in range(frame_count): eye() rotate(radians(45)) - - pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) - - translate(100, 0) # Move screen to the right for right eye for i in range(frame_count): eye() rotate(radians(45)) +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) --- /code --- From f33cb03967d53231086be2892ce0134b9bd201e6 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:22:01 +0100 Subject: [PATCH 107/122] New translations python-comments.txt (Portuguese, Brazilian) --- pt-BR/python-comments.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pt-BR/python-comments.txt b/pt-BR/python-comments.txt index 463c3c4..5aeca11 100644 --- a/pt-BR/python-comments.txt +++ b/pt-BR/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Cria um olho -Outer eye +Circulo externo do olho -Iris +Íris -Pupil +Pupila -Catchlight 1 with opacity +Brilhos nos olhos 1 com opacidade -Catchlight 2 with opacity +Brilho nos olhos 2 com opacidade -Move screen to the middle +Move a tela para o meio -Head +Cabeça -Saves current screen settings +Salva as definições atuais da tela -Move screen to the left for left eye +Move a tela para a esquerda, para desenhar o olho esquerdo -Restores previous screen settings (removes the eye translation and rotation) +Restaura as definições anteriores da tela (remove a translação e a rotação dos olhos) -Move screen to the right for right eye +Move a tela para a direita, para desenhar o olho direito From b70636c7b4f23c5a99b672407c75f9cad969c4fc Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:22:04 +0100 Subject: [PATCH 108/122] New translations python-comments.txt (Spanish, Latin America) --- es-LA/python-comments.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-LA/python-comments.txt b/es-LA/python-comments.txt index 0fd3b21..402a8e2 100644 --- a/es-LA/python-comments.txt +++ b/es-LA/python-comments.txt @@ -18,6 +18,6 @@ Guarda la configuración de pantalla actual Mueve la pantalla a la izquierda para el ojo izquierdo -Restaura la configuración de pantalla anterior (elimina la traslación y rotación de los ojos) +Restaura la configuración de pantalla anterior (elimina el traslado y rotación de los ojos) Mueve la pantalla a la derecha para el ojo derecho From 1877342d73f451a7e1eff2d3140f0a55fd7c379e Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:22:11 +0100 Subject: [PATCH 109/122] New translations python-translatable.txt (Portuguese, Brazilian) --- pt-BR/python-translatable.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pt-BR/python-translatable.txt b/pt-BR/python-translatable.txt index 33339ff..401425f 100644 --- a/pt-BR/python-translatable.txt +++ b/pt-BR/python-translatable.txt @@ -1,9 +1,9 @@ -eye +olho -WHITE +BRANCO -BLUE +AZUL -BLACK +PRETO -draw +desenhar From bc0d3618850f9edd3f95229e36e5b0f75fda5553 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:22:14 +0100 Subject: [PATCH 110/122] New translations python-translatable.txt (Spanish, Latin America) --- es-LA/python-translatable.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-LA/python-translatable.txt b/es-LA/python-translatable.txt index bfd67b9..98b0032 100644 --- a/es-LA/python-translatable.txt +++ b/es-LA/python-translatable.txt @@ -6,4 +6,4 @@ AZUL NEGRO -draw +dibujar From fe61ebb9742893a96c120c3c20121a658eff82c7 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:20:47 +0000 Subject: [PATCH 111/122] New translations meta.yml (Italian) --- it-IT/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 it-IT/meta.yml diff --git a/it-IT/meta.yml b/it-IT/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/it-IT/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From f289ef09716f14ce39e39a0c21141655a1e7962b Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:20:58 +0000 Subject: [PATCH 112/122] New translations step_1.md (Italian) --- it-IT/step_1.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 it-IT/step_1.md diff --git a/it-IT/step_1.md b/it-IT/step_1.md new file mode 100644 index 0000000..10ce0b6 --- /dev/null +++ b/it-IT/step_1.md @@ -0,0 +1,40 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) + +--- /code --- + From a5a8441279b4561def956d006d4f51c5bd68499e Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:21:09 +0000 Subject: [PATCH 113/122] New translations python-comments.txt (Italian) --- it-IT/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 it-IT/python-comments.txt diff --git a/it-IT/python-comments.txt b/it-IT/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/it-IT/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From 091cd65e223fa5875a91958cc23187c86dd97a56 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:21:20 +0000 Subject: [PATCH 114/122] New translations python-translatable.txt (Italian) --- it-IT/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 it-IT/python-translatable.txt diff --git a/it-IT/python-translatable.txt b/it-IT/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/it-IT/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw From 9f960c4f7b6cd5852c440d5d9f692e9516180224 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:21:19 +0100 Subject: [PATCH 115/122] New translations meta.yml (Italian) --- it-IT/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/it-IT/meta.yml b/it-IT/meta.yml index 5cc3d77..3d86adc 100644 --- a/it-IT/meta.yml +++ b/it-IT/meta.yml @@ -1,11 +1,11 @@ --- -title: push and pop matrix +title: push e pop matrix hero_image: images/banner.png -description: push and pop matrix +description: push e pop matrix version: 4 listed: false copyedit: false last_tested: "2021-09-28" steps: - - title: Push and pop matrix + title: Push e pop matrix From 010eee0b9c9986c28cb6e2ae9bb04b3a6da56345 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:21:29 +0100 Subject: [PATCH 116/122] New translations step_1.md (Italian) --- it-IT/step_1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it-IT/step_1.md b/it-IT/step_1.md index 10ce0b6..a3c1649 100644 --- a/it-IT/step_1.md +++ b/it-IT/step_1.md @@ -1,6 +1,6 @@ -When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. +Quando usi le funzioni `rotate()` e `translate()` puoi salvare le impostazioni delle coordinate usando la funzione `push_matrix()` e, in seguito, ripristinarle usando la funzione `pop_matrix()`. -In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. +In questo esempio, per creare due occhi che si muovono, le impostazioni vengono salvate prima che venga disegnato uno dei due occhi. Lo schermo viene spostato e rotato prima che il primo occhio venga disegnato, poi le impostazioni vengono ripristinate prima che il secondo occhio venga disegnato. --- code --- --- From f8cabba109b5e3ce1e09c839e573c5bb1de135ac Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:21:39 +0100 Subject: [PATCH 117/122] New translations python-comments.txt (Italian) --- it-IT/python-comments.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/it-IT/python-comments.txt b/it-IT/python-comments.txt index 463c3c4..e062bda 100644 --- a/it-IT/python-comments.txt +++ b/it-IT/python-comments.txt @@ -1,23 +1,23 @@ -Create an eye +Disegna un occhio -Outer eye +Parte esterna dell'occhio -Iris +Iride -Pupil +Pupilla -Catchlight 1 with opacity +Riflesso 1 con opacità -Catchlight 2 with opacity +Riflesso 2 con opacità -Move screen to the middle +Sposta lo schermo al centro -Head +Testa -Saves current screen settings +Salva le impostazioni attuali dello schermo -Move screen to the left for left eye +Sposta lo schermo a sinistra per l'occhio sinistro -Restores previous screen settings (removes the eye translation and rotation) +Ripristina le impostazioni dello schermo precedenti (rimuovi la traslazione e la rotazione dell'occhio) -Move screen to the right for right eye +Sposta lo schermo a destra per l'occhio destro From 50d719c2dfc0d91310035ab1cee70befd90fdcf5 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:21:49 +0100 Subject: [PATCH 118/122] New translations python-translatable.txt (Italian) --- it-IT/python-translatable.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/it-IT/python-translatable.txt b/it-IT/python-translatable.txt index 33339ff..a62b6b0 100644 --- a/it-IT/python-translatable.txt +++ b/it-IT/python-translatable.txt @@ -1,9 +1,9 @@ -eye +occhio -WHITE +BIANCO -BLUE +BLU -BLACK +NERO draw From 17b9d9e679ce6f9231e60d13714f816a268033ea Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 20 Jun 2025 14:49:12 +0100 Subject: [PATCH 119/122] New translations meta.yml (German) --- de-DE/meta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 de-DE/meta.yml diff --git a/de-DE/meta.yml b/de-DE/meta.yml new file mode 100644 index 0000000..5cc3d77 --- /dev/null +++ b/de-DE/meta.yml @@ -0,0 +1,11 @@ +--- +title: push and pop matrix +hero_image: images/banner.png +description: push and pop matrix +version: 4 +listed: false +copyedit: false +last_tested: "2021-09-28" +steps: + - + title: Push and pop matrix From ea704d570b870de070f5f8eeb0849101bb4d5b07 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 20 Jun 2025 14:49:22 +0100 Subject: [PATCH 120/122] New translations step_1.md (German) --- de-DE/step_1.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 de-DE/step_1.md diff --git a/de-DE/step_1.md b/de-DE/step_1.md new file mode 100644 index 0000000..10ce0b6 --- /dev/null +++ b/de-DE/step_1.md @@ -0,0 +1,40 @@ +When using `rotate()` and `translate()` functions you can save the coordinate settings by using the `push_matrix()` function then restore those coordinate settings using the `pop_matrix()` function. + +In this example, to create two rotating eyes, the settings are saved before either of the eyes are drawn. The screen is translated and rotated before the first eye is drawn then the settings restored before the second eye is drawn. + +--- code --- +--- +language: python + +--- + +def eye(): # Create an eye fill(WHITE) ellipse(0, 0, 150, 150) # Outer eye no_stroke() fill(BLUE) ellipse(0, 0, 80, 80) # Iris fill(BLACK) ellipse(0, 0, 35, 35) # Pupil fill(WHITE, 70) ellipse(-25, -20, 30, 30) # Catchlight 1 with opacity ellipse(25, 25, 10, 10) # Catchlight 2 with opacity + +def draw(): global BLUE, BLACK, WHITE + + BLUE = color(1, 32, 100) + BLACK = color(0, 0, 0) + WHITE = color(255, 255, 255) + + background(WHITE) + translate(width/2, height/2) # Move screen to the middle + + stroke(BLACK) + ellipse(0, 0, 300, 300) # Head + + push_matrix() # Saves current screen settings + + translate(-100, 0) # Move screen to the left for left eye + for i in range(frame_count): + eye() + rotate(radians(45)) + + pop_matrix() # Restores previous screen settings (removes the eye translation and rotation) + + translate(100, 0) # Move screen to the right for right eye + for i in range(frame_count): + eye() + rotate(radians(45)) + +--- /code --- + From b1844a2d6f30800843bc17b7971fd48559651530 Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 20 Jun 2025 14:49:32 +0100 Subject: [PATCH 121/122] New translations python-comments.txt (German) --- de-DE/python-comments.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 de-DE/python-comments.txt diff --git a/de-DE/python-comments.txt b/de-DE/python-comments.txt new file mode 100644 index 0000000..463c3c4 --- /dev/null +++ b/de-DE/python-comments.txt @@ -0,0 +1,23 @@ +Create an eye + +Outer eye + +Iris + +Pupil + +Catchlight 1 with opacity + +Catchlight 2 with opacity + +Move screen to the middle + +Head + +Saves current screen settings + +Move screen to the left for left eye + +Restores previous screen settings (removes the eye translation and rotation) + +Move screen to the right for right eye From a31884a0b02ac3207ec02a356f574c4482e4fada Mon Sep 17 00:00:00 2001 From: Sasha Mishcheriakova <135987917+sashamishcheriakova@users.noreply.github.com> Date: Fri, 20 Jun 2025 14:49:42 +0100 Subject: [PATCH 122/122] New translations python-translatable.txt (German) --- de-DE/python-translatable.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 de-DE/python-translatable.txt diff --git a/de-DE/python-translatable.txt b/de-DE/python-translatable.txt new file mode 100644 index 0000000..33339ff --- /dev/null +++ b/de-DE/python-translatable.txt @@ -0,0 +1,9 @@ +eye + +WHITE + +BLUE + +BLACK + +draw