Skip to content

Commit a954f9b

Browse files
committed
Use bezierVertex for first point
1 parent 9f4f3ee commit a954f9b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

test/unit/visual/cases/shapes.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ visualSuite('Shape drawing', function() {
193193
visualTest('Drawing with cubic beziers', function(p5, screenshot) {
194194
setup(p5);
195195
p5.beginShape();
196-
p5.vertex(10, 10);
196+
p5.bezierVertex(10, 10);
197+
197198
p5.bezierVertex(10, 10);
198199
p5.bezierVertex(15, 40);
199200
p5.bezierVertex(40, 35);
@@ -208,12 +209,15 @@ visualSuite('Shape drawing', function() {
208209
visualTest('Drawing with quadratic beziers', function(p5, screenshot) {
209210
setup(p5);
210211
p5.beginShape();
211-
p5.vertex(10, 10);
212212
p5.bezierOrder(2);
213+
p5.bezierVertex(10, 10);
214+
213215
p5.bezierVertex(10, 10);
214216
p5.bezierVertex(15, 40);
217+
215218
p5.bezierVertex(40, 35);
216219
p5.bezierVertex(25, 15);
220+
217221
p5.bezierVertex(15, 25);
218222
p5.bezierVertex(10, 10);
219223
p5.endShape();

test/unit/webgl/p5.Geometry.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ suite('p5.Geometry', function() {
223223
myp5.cone();
224224

225225
myp5.beginShape();
226-
myp5.vertex(-20, -50);
227226
myp5.bezierOrder(2);
227+
myp5.bezierVertex(-20, -50);
228+
228229
myp5.bezierVertex(-40, -70);
229230
myp5.bezierVertex(0, -60);
230231
myp5.endShape();

0 commit comments

Comments
 (0)