Programming: Drawing a grid with numbers
in
Programming Questions
•
2 years ago
Hi all;
Programming newbie here. I'm developing a couple of things with processing but my programming skills are pretty rusty.
Anyway, my programming question is as follows.
I want to draw a grid formed by rectangles. The number of rectangles doesn't really matter. I was able to draw the grid with two loops. Now, I need for each of these 'squares' to contain a number and an identifier so that further on I can detect collisions with each individual square.
Hopefully I was clear and someone can help me out :)
Thanks,
Sam
Programming newbie here. I'm developing a couple of things with processing but my programming skills are pretty rusty.
Anyway, my programming question is as follows.
I want to draw a grid formed by rectangles. The number of rectangles doesn't really matter. I was able to draw the grid with two loops. Now, I need for each of these 'squares' to contain a number and an identifier so that further on I can detect collisions with each individual square.
Hopefully I was clear and someone can help me out :)
Thanks,
Sam
1