I’m creating a grid of black rectangles on a white background and for some reason unknown to me, part of some rectangles are split and pushed up a pixel to make a weird triangle looking thing in the middle of the grid.
private final int columns = 15;
private final int rows = 15;
private final int scale = 40;
public void settings() {
noSmooth();
size(600,600);
}
public void setup() {
frameRate(30);
}
public void draw() {
background(255);
noStroke();
fill(0);
for (int x = 0; x < columns; x++) {
for (int y = 0; y < rows; y++) {
rect((x*scale)+1, (y*scale)+1, scale-2, scale-2);
}
}
}
You can see the effect starting in the upper right corner of this image. I have no idea what is causing this.