strokeWeight(1) produces 2 pixel thick border
in
Programming Questions
•
3 months ago
With the code below, I get a grid with borders 2 pixels thick and I'm not sure why since I set the strokeWeight to 1 pixel.
- void setup()
{
smooth();
size(window.innerHeight*(16/9),window.innerHeight);
background(255,0,0);
}
void draw()
{
size(window.innerHeight*(16/9),window.innerHeight);
background(255,0,0);
stroke(0,0,0);
strokeWeight(1);
rect(0,0,1,height);
for(i = 0;i < 65;i++) {
rect((i*width)/64,0,1,height);
}
for(i = 0;i < 37;i++) {
rect(0,(i*height)/36,width,1);
}
}
1