Skip to content

Commit a3f3031

Browse files
author
Lauren McCarthy
committed
Merge pull request #880 from mgold/fix-curve-example
Fix curve example
2 parents a4f0e01 + 911b396 commit a3f3031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/curves.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ p5.prototype.bezierTangent = function(a, b, c, d, t) {
235235
* p3 = {x: 73, y: 61}, p4 = {x: 15, y: 65}
236236
* noFill();
237237
* stroke(255, 102, 0);
238-
* curve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y)
238+
* curve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y)
239239
* stroke(0);
240240
* curve(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y)
241241
* stroke(255, 102, 0);

0 commit comments

Comments
 (0)