Skip to content

Commit 5dccb2b

Browse files
committed
Clarify shapes example
1 parent ec2aa81 commit 5dccb2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ function setup() {
164164
}
165165
function draw() {
166166
translate(width/2, height/2);
167-
// Draw the curved star shape
167+
168+
// Draw the curved star shape - use one of the snippets below, depending on p5.js version
169+
168170
describe("A white star on a gray background in the middle of the canvas")
169171
}
170172
```
@@ -216,7 +218,7 @@ bezierVertex(0, 50);
216218
bezierVertex(0, 100);
217219

218220
// Bottom-left curve.
219-
bezierVertex(  0, 50);
221+
bezierVertex(0, 50);
220222
bezierVertex(-50, 0);
221223
bezierVertex(-100, 0);
222224

0 commit comments

Comments
 (0)