changing stroke weight
in
Programming Questions
•
6 months ago
HI im trying to draw this board. im having trouble with Grey thin lines going over on think black lines. im not sure how to fix it…..
size (300, 300);
background(220);
{
rectMode(CENTER);
stroke(0);
strokeWeight(3);
rect(width/2, height/2, 270, 270);
}
int inc=30;
int x = inc;
while ( x< width) {
if (x%90==0) {
stroke(0);
strokeWeight(3);
}
else{
stroke(200);
strokeWeight(1);
}
line(x+15, 15, x+15, height-15);
println(x);
x+=inc;
}
int inn = 30;
int y = inn;
while (y < height) {
if (y%90==0) {
stroke(0);
strokeWeight(3);
}
else{
stroke(200);
strokeWeight(1);
}
line(15, y+15, width-15, y+15);
y+=inc;
}
1