7677787980818283848586
background(255); // move and draw all the balls for (int i = 0; i < balls.size(); i++) { Ball ball = (Ball) balls.get(i); ball.calc(); if (client.isOnScreen(ball.x - ball.d / 2, ball.y - ball.d / 2, ball.d, ball.d)) { ball.draw(); } }