Hi folks,
I’m trying to hack together my own grid that i can place in front of my camera lens, so that i have a customizable grid in camera view.
My question is, how does one make every fifth line (in both x & y) a different color?
I also need it to remain every fifth, even if i change the number of x & y grid divisions!
Here’s my blend file attached.
Thanks, hopefully, in advance!
grid question.blend (958.9 KB)
Have you tried using modulo on the index to separate yr geonode streams?
Hope that helps
Thanks, but i don’t understand how to apply this to my grid.
I haven’t done much with geonodes in the last year so i’m feeling like a bit of a noob again! 
Yes, modulo math is your friend.
Thanks a lot, that works great! 
Could i ask you how to do one tweak on it?:
As it stands, you can increment “count” by an integer to increase grid resolution.
But i’d like it to actually increment like this:
“new” count setting 1 = “old” count setting 6
2 = 11
3= 21
4= 41
5= 81
etc
So, basically, each time you increment “count” it subdivides the grid.
How do you do that?
use maprange node and or some maths nodes…I dont see a logical pattern there.
Yes! I think i worked it out!
Thanks for that! Unfortunately my GN knowledge isn’t good enough for me to understand what you’re doing there! 
Its not GN… it’s just math.
For a grid with dimensions X*Y, the face index will be some multiple of (Y-1) at the start of every row.
So, floor(FaceIndex/(Y-1)) gives you the row index of every face…
Form there it is just a case of modding the row index.
Similar logic goes for columns: