|
-
March 4th, 2010, 12:52 PM
#1
Grid of circles
Hi, I'm trying to make a square grid of circles (ex: 3x3, 5x5) using a for loop.
for(int i=1; i<=Lines; i++){
g.setColor (Color.RED);
g.fillOval(x+(SIZE*i/(Lines+1)),y+(SIZE/(Lines+1)),4,4);
}
This loop creates only a single row of circles. I'm at a loss as to how to modify this to create an entire grid of circles.
Any help is appreciated, thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|