Skip to content

Commit 44f8214

Browse files
authored
Modify rect and ellipse comments
In the `CORNERS` mode, rectangles and ellipses are drawn based on two points/corners.
1 parent 2cf6f5e commit 44f8214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/templates/pages/learn/coordinate-system-and-shapes.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function setup(){
8787
rectMode(CORNERS);
8888
}
8989
function draw(){
90-
rect(10, 10, 50, 30); // rect(x, y, width, height)
90+
rect(10, 10, 50, 30); // rect(x1, y1, x2, y2)
9191
}
9292
</script>
9393

@@ -118,7 +118,7 @@ function setup(){
118118
ellipseMode(CORNERS);
119119
}
120120
function draw(){
121-
ellipse(10, 10, 40, 50); // ellipse(x, y, width, height)
121+
ellipse(10, 10, 40, 50); // ellipse(x1, y1, x2, y2)
122122
}
123123
</script>
124124

0 commit comments

Comments
 (0)