How to toggle noStroke?
in
Programming Questions
•
1 year ago
Beginner question:
I've been assigned to make an animal for my computer programming class, and I based my animal after a little cartoon chicken (Castle Crashers, if you're interested). The chicken has some shading, so I'd thought I'd put it in. It looked good when I ran it on my computer, but when I uploaded it, I get
this:
http://profitablehobo.net16.net/Chicken.html. That ugly line for the shadow became bold. I put noStroke() before it and the rest of the lines under it also had noStroke() applied. Here are some lines of code with the noStroke(), wondering what I can put to toggle it off.
//Shadow
noStroke();
strokeWeight(0);
fill(224,220,215);
beginShape();
vertex(40,25);
vertex(25,65);
vertex(30,77);
vertex(40,84);
vertex(50,88);
vertex(70,90);
vertex(95,85);
vertex(107,61);
vertex(105,55);
vertex(95,68);
vertex(85,78);
vertex(75,76.5);
vertex(65,75);
vertex(50,68);
vertex(43,50);
vertex(40,25);
endShape();
//Beak
strokeWeight(2);
fill(240,164,51);
beginShape();
vertex(86,15);
vertex(87.5,18.5);
vertex(85,22);
vertex(86,29);
vertex(87,29);
vertex(97,29);
endShape();
Edit: I fixed it a day after v.k. submitted his solution. For those you wondering, it used to look exactly like the chicken does above, but the shadow had a noticeable black outline.
1