Guest User

Untitled

a guest
Apr 27th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public void drawBalls(Graphics g){
  2. for(int i = 0; i < numBalls; i++) {
  3. int x = (int)Math.random() * 650; int y = (int)Math.random() * 200;
  4. Ball ball = new Ball(x,y,50,h,v);
  5. g.fillOval(ball.getX(),ball.getY(),ball.getR(),ball.getR());
  6. }
  7. }
Add Comment
Please, Sign In to add comment