could anyone sort me out with this

I’m trying to make a grid of upside down white triangles exactly like

with nested loops

but so far I’ve only gotten

that has misaligned non grid triangles

I’ve no idea what to change in the variables now, any help would be seriously appreciated

my current code

void setup() {

size(420, 420);

background(0, 255, 0);

noStroke();

}

void draw() {

for (int x = 0; x <= 420; x += width/6) {

for (int y = 0; y <= 420; y += height/6)

```
triangle(x, y, x + 70, y, x += 35, y + 70 );
```

}

}

thank you