-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Remove old overloads for bezierVertex() and quadraticVertex() #7600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,8 +194,13 @@ visualSuite('Shape drawing', function() { | |
| setup(p5); | ||
| p5.beginShape(); | ||
| p5.vertex(10, 10); | ||
|
||
| p5.bezierVertex(10, 10, 15, 40, 40, 35); | ||
| p5.bezierVertex(25, 15, 15, 25, 15, 25); | ||
| p5.bezierVertex(10, 10); | ||
| p5.bezierVertex(15, 40); | ||
| p5.bezierVertex(40, 35); | ||
|
|
||
| p5.bezierVertex(25, 15) | ||
| p5.bezierVertex(15, 25) | ||
| p5.bezierVertex(15, 25); | ||
| p5.endShape(); | ||
| screenshot(); | ||
| }); | ||
|
|
@@ -204,9 +209,13 @@ visualSuite('Shape drawing', function() { | |
| setup(p5); | ||
| p5.beginShape(); | ||
| p5.vertex(10, 10); | ||
|
||
| p5.quadraticVertex(10, 10, 15, 40); | ||
| p5.quadraticVertex(40, 35, 25, 15); | ||
| p5.quadraticVertex(15, 25, 10, 10); | ||
| p5.bezierOrder(2); | ||
| p5.bezierVertex(10, 10); | ||
| p5.bezierVertex(15, 40); | ||
| p5.bezierVertex(40, 35); | ||
| p5.bezierVertex(25, 15); | ||
| p5.bezierVertex(15, 25); | ||
| p5.bezierVertex(10, 10); | ||
| p5.endShape(); | ||
| screenshot(); | ||
| }); | ||
|
|
@@ -367,7 +376,9 @@ visualSuite('Shape drawing', function() { | |
| p5.beginShape(); | ||
| p5.vertex(10, 10, 0); | ||
| p5.vertex(10, 40, -150); | ||
| p5.quadraticVertex(40, 40, 200, 40, 10, 150); | ||
| p5.bezierOrder(2); | ||
| p5.bezierVertex(40, 40, 200); | ||
| p5.bezierVertex(40, 10, 150); | ||
| p5.endShape(p5.CLOSE); | ||
|
|
||
| screenshot(); | ||
|
|
@@ -379,7 +390,9 @@ visualSuite('Shape drawing', function() { | |
| p5.beginShape(); | ||
| p5.vertex(10, 10, 0); | ||
| p5.vertex(10, 40, -150); | ||
| p5.bezierVertex(40, 40, 200, 40, 10, 150, 10, 10, 0); | ||
| p5.bezierVertex(40, 40, 200); | ||
| p5.bezierVertex(40, 10, 150); | ||
| p5.bezierVertex(10, 10, 0); | ||
| p5.endShape(); | ||
|
|
||
| screenshot(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -224,10 +224,9 @@ suite('p5.Geometry', function() { | |
|
|
||
| myp5.beginShape(); | ||
| myp5.vertex(-20, -50); | ||
| myp5.quadraticVertex( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue here as on lines 196 and 211. Could replace with the following: myp5.beginShape();
myp5.bezierOrder(2);
myp5.bezierVertex(-20, -50);
myp5.bezierVertex(-40, -70);
myp5.bezierVertex(0, -60);
myp5.endShape(); |
||
| -40, -70, | ||
| 0, -60 | ||
| ); | ||
| myp5.bezierOrder(2); | ||
| myp5.bezierVertex(-40, -70); | ||
| myp5.bezierVertex(0, -60); | ||
| myp5.endShape(); | ||
|
|
||
| myp5.beginShape(myp5.TRIANGLE_STRIP); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this Dave! This part looks good. I'll make a separate PR to move this over to custom_shapes.js, and I'll update the inline reference when I do.