I'm using beginShape(QUAD_STRIP) to draw out something really big, and I just want a flat single colored shape, and I have some problems on the stroke or the gap.
If I use noStroke(), there will always be a gap between each quad if you look carefully. It seems the gap is where the stroke is supposed to be, since I'm setting noStroke(), then the skinny line just becomes transparent.
If I do use stroke with half of the alpha value, there still is a thick line, which I think consists of two overlapping stroke lines.
So my question is does anyone know if there is a way to get rid of the gap? I need just a big flat semi-transparent shape.
Thank you all so much, and here's the code
size(800, 800);
smooth();
// gradient
for (int y=0; y<height; y++) {
stroke(map(y,0,height,0,255));
line(0,y,width,y);
}
noStroke();
//strokeWeight(1);
//stroke(255, 0, 0, 10);
fill(255, 0, 0, 100);
beginShape(TRIANGLE_STRIP);
vertex(-80, 75);
vertex(50, 750);
vertex(200, 75);
vertex(350, 750);
vertex(500, 75);
vertex(650, 750);
vertex(800, 75);
endShape();
1