Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
1600b4d
New translations example.png (French)
majamanojlovic Jan 19, 2022
f419d8f
New translations step_1.md (Japanese)
majamanojlovic Jan 19, 2022
7420c70
New translations meta.yml (Hindi)
majamanojlovic Jan 19, 2022
37146dc
New translations meta.yml (Welsh)
majamanojlovic Jan 19, 2022
e92e070
New translations meta.yml (Kannada)
majamanojlovic Jan 19, 2022
f2f6ed4
New translations meta.yml (Spanish, Latin America)
majamanojlovic Jan 19, 2022
89249cc
New translations step_1.md (French)
majamanojlovic Jan 19, 2022
410f763
New translations step_1.md (Arabic)
majamanojlovic Jan 19, 2022
a642f70
New translations step_1.md (Greek)
majamanojlovic Jan 19, 2022
c65f9c2
New translations step_1.md (Dutch)
majamanojlovic Jan 19, 2022
8c5019c
New translations meta.yml (Portuguese, Brazilian)
majamanojlovic Jan 19, 2022
cf30aa1
New translations step_1.md (Polish)
majamanojlovic Jan 19, 2022
f0bb15d
New translations step_1.md (Russian)
majamanojlovic Jan 19, 2022
b79871b
New translations step_1.md (Portuguese, Brazilian)
majamanojlovic Jan 19, 2022
e69b40d
New translations step_1.md (Marathi)
majamanojlovic Jan 19, 2022
942119d
New translations step_1.md (Hindi)
majamanojlovic Jan 19, 2022
513ba98
New translations step_1.md (Welsh)
majamanojlovic Jan 19, 2022
93f2a92
New translations step_1.md (Kannada)
majamanojlovic Jan 19, 2022
7d3159b
New translations meta.yml (Marathi)
majamanojlovic Jan 19, 2022
c6aa41f
New translations meta.yml (Russian)
majamanojlovic Jan 19, 2022
a269a81
New translations example.png (Arabic)
majamanojlovic Jan 19, 2022
47bf951
New translations example.png (Hindi)
majamanojlovic Jan 19, 2022
b46e77d
New translations example.png (Greek)
majamanojlovic Jan 19, 2022
2097605
New translations example.png (Japanese)
majamanojlovic Jan 19, 2022
fa16db1
New translations example.png (Dutch)
majamanojlovic Jan 19, 2022
abc7418
New translations example.png (Polish)
majamanojlovic Jan 19, 2022
a329667
New translations example.png (Russian)
majamanojlovic Jan 19, 2022
451d40e
New translations example.png (Portuguese, Brazilian)
majamanojlovic Jan 19, 2022
6834261
New translations example.png (Marathi)
majamanojlovic Jan 19, 2022
a562162
New translations example.png (Welsh)
majamanojlovic Jan 19, 2022
e48dcaf
New translations meta.yml (Polish)
majamanojlovic Jan 19, 2022
556b947
New translations example.png (Kannada)
majamanojlovic Jan 19, 2022
ecea0f2
New translations example.png (Spanish, Latin America)
majamanojlovic Jan 19, 2022
31e112c
New translations meta.yml (French)
majamanojlovic Jan 19, 2022
3e56ca3
New translations meta.yml (Arabic)
majamanojlovic Jan 19, 2022
46eec4c
New translations meta.yml (Greek)
majamanojlovic Jan 19, 2022
46cd9c4
New translations meta.yml (Japanese)
majamanojlovic Jan 19, 2022
e1b6353
New translations meta.yml (Dutch)
majamanojlovic Jan 19, 2022
d09d516
New translations step_1.md (Spanish, Latin America)
majamanojlovic Jan 19, 2022
ab8d4b3
New translations step_1.md (Japanese)
majamanojlovic Jan 25, 2022
aa603e8
New translations step_1.md (French)
majamanojlovic Jan 25, 2022
7c532e5
New translations step_1.md (Arabic)
majamanojlovic Jan 25, 2022
10a635e
New translations step_1.md (Greek)
majamanojlovic Jan 25, 2022
d4ae87f
New translations step_1.md (Dutch)
majamanojlovic Jan 25, 2022
93ccf74
New translations step_1.md (Polish)
majamanojlovic Jan 25, 2022
4f24698
New translations step_1.md (Russian)
majamanojlovic Jan 25, 2022
bdd1f1b
New translations step_1.md (Portuguese, Brazilian)
majamanojlovic Jan 25, 2022
fb12504
New translations step_1.md (Marathi)
majamanojlovic Jan 25, 2022
a4422f3
New translations step_1.md (Hindi)
majamanojlovic Jan 25, 2022
20121c5
New translations step_1.md (Welsh)
majamanojlovic Jan 25, 2022
a644b77
New translations step_1.md (Kannada)
majamanojlovic Jan 25, 2022
39b26ba
New translations step_1.md (Spanish, Latin America)
majamanojlovic Jan 25, 2022
afc905c
New translations step_1.md (Japanese)
majamanojlovic Mar 4, 2022
62536d4
New translations meta.yml (Spanish, Latin America)
majamanojlovic Mar 4, 2022
6010d27
New translations step_1.md (French)
majamanojlovic Mar 4, 2022
4fcfbf2
New translations step_1.md (Arabic)
majamanojlovic Mar 4, 2022
670505f
New translations step_1.md (Greek)
majamanojlovic Mar 4, 2022
4128231
New translations step_1.md (Dutch)
majamanojlovic Mar 4, 2022
83d1c0c
New translations meta.yml (French)
majamanojlovic Mar 4, 2022
5c85aa4
New translations meta.yml (Arabic)
majamanojlovic Mar 4, 2022
5779b38
New translations meta.yml (Greek)
majamanojlovic Mar 4, 2022
0058cf0
New translations meta.yml (Japanese)
majamanojlovic Mar 4, 2022
98ddf2c
New translations meta.yml (Dutch)
majamanojlovic Mar 4, 2022
b6e7dad
New translations step_1.md (Spanish, Latin America)
majamanojlovic Mar 4, 2022
e056563
New translations meta.yml (Spanish, Latin America)
majamanojlovic Mar 4, 2022
0fee9b0
New translations step_1.md (Arabic)
majamanojlovic Mar 4, 2022
d1430c7
New translations step_1.md (Spanish, Latin America)
majamanojlovic Mar 4, 2022
36da929
New translations meta.yml (Welsh)
majamanojlovic May 6, 2022
360ea3e
New translations step_1.md (Dutch)
majamanojlovic May 6, 2022
c4d9f78
New translations step_1.md (Welsh)
majamanojlovic May 6, 2022
a5af548
New translations step_1.md (Welsh)
majamanojlovic May 6, 2022
48508ad
New translations step_1.md (Portuguese, Brazilian)
majamanojlovic Jun 7, 2022
548c5dc
New translations meta.yml (Portuguese, Brazilian)
majamanojlovic Jun 7, 2022
38528aa
New translations step_1.md (Portuguese, Brazilian)
majamanojlovic Jun 7, 2022
b9112ac
New translations step_1.md (Ukrainian)
majamanojlovic Nov 3, 2022
785824c
New translations meta.yml (Ukrainian)
majamanojlovic Nov 3, 2022
40c460f
New translations example.png (Ukrainian)
majamanojlovic Nov 3, 2022
2390e56
New translations meta.yml (Ukrainian)
majamanojlovic Feb 23, 2023
1b45fb4
New translations step_1.md (Ukrainian)
majamanojlovic Feb 23, 2023
ad7aa19
New translations meta.yml (Polish)
sashamishcheriakova Dec 1, 2023
927da57
New translations step_1.md (French)
sashamishcheriakova Dec 1, 2023
8e2828d
New translations step_1.md (Arabic)
sashamishcheriakova Dec 1, 2023
64b1b91
New translations step_1.md (Greek)
sashamishcheriakova Dec 1, 2023
0390fc7
New translations step_1.md (Japanese)
sashamishcheriakova Dec 1, 2023
3ffe7d1
New translations step_1.md (Dutch)
sashamishcheriakova Dec 1, 2023
672467a
New translations step_1.md (Polish)
sashamishcheriakova Dec 1, 2023
a778ec4
New translations step_1.md (Russian)
sashamishcheriakova Dec 1, 2023
8d7c96d
New translations step_1.md (Ukrainian)
sashamishcheriakova Dec 1, 2023
c4ca9db
New translations step_1.md (Portuguese, Brazilian)
sashamishcheriakova Dec 1, 2023
3856217
New translations step_1.md (Marathi)
sashamishcheriakova Dec 1, 2023
8ccc113
New translations step_1.md (Hindi)
sashamishcheriakova Dec 1, 2023
0f6790a
New translations step_1.md (Welsh)
sashamishcheriakova Dec 1, 2023
746c011
New translations step_1.md (Kannada)
sashamishcheriakova Dec 1, 2023
8acda25
New translations step_1.md (Spanish, Latin America)
sashamishcheriakova Dec 1, 2023
a2d5e31
New translations step_1.md (Polish)
sashamishcheriakova Dec 1, 2023
da48f8d
New translations example.png (Italian)
sashamishcheriakova Jan 5, 2024
4aa8386
New translations meta.yml (Italian)
sashamishcheriakova Jan 5, 2024
e9dae79
New translations step_1.md (Italian)
sashamishcheriakova Jan 5, 2024
868bd1a
New translations meta.yml (Italian)
sashamishcheriakova Jan 12, 2024
1f72b6c
New translations step_1.md (Italian)
sashamishcheriakova Jan 12, 2024
823d9fb
New translations step_1.md (Dutch)
sashamishcheriakova Mar 22, 2024
76843e8
New translations step_1.md (Polish)
sashamishcheriakova Mar 22, 2024
4d5b56c
New translations example.png (German)
sashamishcheriakova Aug 19, 2024
a09a99b
New translations meta.yml (German)
sashamishcheriakova Aug 19, 2024
b564150
New translations step_1.md (German)
sashamishcheriakova Aug 19, 2024
7149719
New translations step_1.md (German)
sashamishcheriakova Aug 22, 2024
fb9b1be
New translations step_1.md (German)
sashamishcheriakova Apr 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ar-SA/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions ar-SA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: ارسم مستطيلاً
hero_image: images/banner.png
description: ارسم مستطيلاً باستخدام المعالجة في Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: المقدمة
24 changes: 24 additions & 0 deletions ar-SA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ارسم مربعًا أو مستطيلًا باستخدام: `rect(x, y, الارتفاع, العرض)`

سيتم رسم المستطيل باستخدام حركة سريعة والتعبئة التي تم تعيينها قبل استدعاء `rect`.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added cy-GB/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions cy-GB/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Llunio petryal
hero_image: images/banner.png
description: Llunio petryal gan ddefnyddio prosesu yn Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Cyflwyniad
24 changes: 24 additions & 0 deletions cy-GB/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Lluniwch sgwâr neu betryal gan ddefnyddio: `rect(x, y, lled, uchder)`

Bydd y petryal yn cael ei lunio gan ddefnyddio'r gwerthoedd strôc a llenwi sydd wedi'u gosod cyn galw `rect`.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added de-DE/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions de-DE/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Zeichne ein Rechteck
hero_image: images/banner.png
description: Zeichne mit Processing ein Rechteck in Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Einleitung
24 changes: 24 additions & 0 deletions de-DE/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Zeichne ein Quadrat oder Rechteck mit: `rect(x, y, breite, höhe)`

Das Rechteck wird mit den Strich- und Füllwerten gezeichnet, die vor dem Aufruf von `rect` festgelegt wurden.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, Breite, Höhe

--- /code ---

Das Rechteck wird mit seiner oberen linken Ecke an den (x, y)-Koordinaten gezeichnet, die durch die ersten beiden Zahlen angegeben werden.

**Tipp:** Wenn der Mittelpunkt des Rechtecks bei den Koordinaten (x, y) liegen soll, rufe `rect_mode(CENTER)` in der `setup` Funktion auf.

Die dritte Zahl ist die Breite und die vierte die Höhe des Rechtecks.

![Der Ausgabebereich zeigt ein Rechteck, welches an dem Mittelpunkt x 160, y 220 zentriert ist. Es hat die Breite 200 und Höhe 100](images/example.png)

Stelle Breite und Höhe gleich ein, um ein Quadrat zu zeichnen.

Binary file added el-GR/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions el-GR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Σχεδίασε ένα ορθογώνιο
hero_image: images/banner.png
description: Σχεδίασε ένα ορθογώνιο με Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Εισαγωγή
24 changes: 24 additions & 0 deletions el-GR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Σχεδίασε ένα τετράγωνο ή ορθογώνιο χρησιμοποιώντας: `rect (x, y, width, height)`

Το ορθογώνιο θα σχεδιαστεί χρησιμοποιώντας τις τιμές περιγράμματος και χρώματος που έχουν οριστεί πριν καλέσεις το `rect`.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added es-419/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions es-419/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Dibuja un rectángulo
hero_image: images/banner.png
description: Dibuja un rectángulo usando funciones de Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Introducción
24 changes: 24 additions & 0 deletions es-419/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Dibuja un cuadrado o rectángulo usando: `rect(x, y, ancho, alto)`

El rectángulo se dibuja utilizando los valores de trazo y relleno que se han establecido antes de llamar a la función `rect`.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added fr-FR/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions fr-FR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Dessiner un rectangle
hero_image: images/banner.png
description: Dessiner un rectangle en utilisant Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Introduction
24 changes: 24 additions & 0 deletions fr-FR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Dessiner un carré ou un rectangle en utilisant : `rect(x, y, width, height)`

Le rectangle sera dessiné en utilisant les valeurs de trait et de remplissage qui ont été définies avant l'appel de `rect`.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added hi-IN/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions hi-IN/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Draw a rectangle
hero_image: images/banner.png
description: Draw a rectangle using processing in Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Introduction
24 changes: 24 additions & 0 deletions hi-IN/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Draw a square or rectangle using: `rect(x, y, width, height)`

The rectangle will be drawn using the stroke and fill values that have been set before `rect` is called.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added it-IT/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions it-IT/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Disegna un rettangolo
hero_image: images/banner.png
description: Disegna un rettangolo con Python, usando processing
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Introduzione
24 changes: 24 additions & 0 deletions it-IT/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Disegna un quadrato o un rettangolo usando: `rect(x, y, larghezza, altezza)`

Il rettangolo verrà disegnato utilizzando i valori di tratto e riempimento impostati prima che venga chiamata la funzione `rect`.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, larghezza, altezza

--- /code ---

Il rettangolo verrà disegnato con l'angolo superiore sinistro alle coordinate (x, y) date dai primi due numeri.

**Suggerimento:** Se vuoi che il centro del rettangolo si trovi sulle coordinate (x, y), chiama `rect_mode(CENTER)` nella funzione `setup`.

Il terzo numero è la larghezza e il quarto è l'altezza del rettangolo.

![L'area di output, che mostra un rettangolo con origine in x 160, y 220, larghezza 200 e altezza 100](images/example.png)

Rendi la larghezza e l'altezza uguali per disegnare un quadrato.

Binary file added ja-JP/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions ja-JP/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: 四角形を描く
hero_image: images/banner.png
description: PythonのProcessingを使って四角形を描きます
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: はじめに
24 changes: 24 additions & 0 deletions ja-JP/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
次を使って正方形や長方形を描きます。`rect(x, y, 幅, 高さ)`

`rect`が呼び出される前に設定されていた輪郭線と塗りつぶしの値を使って四角形が描かれます。

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added kn-IN/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions kn-IN/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Draw a rectangle
hero_image: images/banner.png
description: Draw a rectangle using processing in Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Introduction
24 changes: 24 additions & 0 deletions kn-IN/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Draw a square or rectangle using: `rect(x, y, width, height)`

The rectangle will be drawn using the stroke and fill values that have been set before `rect` is called.

--- code ---
---
language: python
filename: main.py
---

rect(160, 220, 200, 100) # x, y, width, height

--- /code ---

The rectangle will be drawn with its top left corner at the (x, y) coordinates given by the first two numbers.

**Tip:** If you want the center of the rectangle to be at the (x, y) coordinates then call `rect_mode(CENTER)` in the `setup` function.

The third number is the width and the fourth is the height of the rectangle.

![The output area showing a rectangle centred around x 160, y 220 with width 200 and height 100](images/example.png)

Make the width and height the same to draw a square.

Binary file added mr-IN/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions mr-IN/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Draw a rectangle
hero_image: images/banner.png
description: Draw a rectangle using processing in Python
version: 4
listed: false
copyedit: false
last_tested: "2021-07-22"
steps:
-
title: Introduction
Loading