-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
p5.js version
2.0.5
What is your operating system?
Windows
Web browser and version
142.0.7444.135 (Official Build) (64-bit) (cohort: Stable)
Actual Behavior
The latest build of p5js says that curveVertex() is undefined
But curveVertex() works as expected in version 1.11.10
Expected Behavior
a curve to be drawn
Steps to reproduce
Steps:
1.press play
// Paste your code here :)
function setup() {
createCanvas(400, 400);
}
function draw() {
background(175);
// xy coordinate mapper
fill(0);
noStroke();
text("x = " + round(mouseX), 20, 20);
text("y = " + round(mouseY), 20, 40);
// symmetry variable
let middle = width * 0.5;
text("middle = " + middle, 210, 390);
stroke(0);
line(middle, 0, middle, 400);
// right wing design
fill(255, 150, 0);
strokeWeight(2);
beginShape();
vertex(middle + 10, 150);
vertex(middle + 160, 90);
vertex(middle + 180, 160);
vertex(middle + 145, 245);
vertex(middle + 155, 315);
vertex(middle + 20, 280);
vertex(middle + 10, 150);
endShape();
// left wing design
fill(255, 150, 0);
strokeWeight(2);
beginShape();
vertex(middle - 10, 150);
vertex(middle - 160, 90);
vertex(middle - 180, 160);
vertex(middle - 145, 245);
vertex(middle - 155, 315);
vertex(middle - 20, 280);
vertex(middle - 10, 150);
endShape();
// right black vein
stroke(0);
fill(0);
beginShape();
curveVertex(200, 170);
curveVertex(225, 160);
curveVertex(270, 150);
curveVertex(300, 120);
endShape();
// right black vein
stroke(0);
fill(0);
beginShape();
curveVertex(200, 170);
curveVertex(225, 160);
curveVertex(270, 150);
curveVertex(300, 120);
endShape();
}