Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void target(int rings)
- {
- for(int i = 0; i < rings; i++)
- {
- if(i%2 == 0)
- {
- plane.setForegroundColor(Color.RED);
- }
- else
- {
- plane.setForegroundColor(Color.WHITE);
- }
- int diameter = (int)(WIDTH*.9*(rings-i)/rings);
- plane.fillCircle(WIDTH/2-diameter/2,HEIGHT/2-diameter/2, diameter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement