How i can save the position of a rect() in a 2 dimensional array?
in
Programming Questions
•
5 months ago
Hey guys! First: Sorry for my bad english :(
so, this is my code:
so, this is my code:
void setup(){
size(640, 480);
background(255);
fill(0);
for(int i=0; i<10; i++){
rect(random(630), random(470), 10, 10);
}
}
void draw(){
}
No i want to save the position of the random created rects in a 2 dimensional array. But i have no idea how to do it :( And google does not help :(
if someone could help, that would be great :)
No i want to save the position of the random created rects in a 2 dimensional array. But i have no idea how to do it :( And google does not help :(
if someone could help, that would be great :)
1