hi,

i’ve got a matrix grid that changes size, currently its 10 x 10 but it can be 20 x20, or 5 x 5 so changable

i was wondering how to get a pattern like this. Using some sort of a formula

lets say that we have an

```
int gridColour =0;
```

if it’s purple `gridColour = 1;`

and if its cyan/blue `gridColour = 0;`