Hello everyone. Absolute beginner here, and I appreciate your help already. I’m using the Make: Getting Started with p5.js book, and I’m confused about example 3-15.
Using noStroke() affects all the shapes, when I believe it is only supposed to affect the ellipse below. If I remove noStroke(), then all of the shapes are stroked.
Is noStroke() intended to remove the stroke of all shapes, above and below? Or is something wrong with this code that I’m just not seeing?
The code is as follows:
function setup() {
createCanvas(480, 120);
}
function draw() {
background(204);
fill(153);
ellipse(132, 82, 200, 200);
noFill();
ellipse(228, -16, 200, 200);
noStroke();
ellipse(268, 118, 200, 200);
}
I’ve used this code locally, as well as on a few p5.js online editors.
Thank you,
Justin