Пример #1
0
 public void render(Graphics2D g2d) {
   g2d.setColor(color);
   GameMethods.setOpacity(g2d, opacity);
   g2d.fillOval((int) x, (int) y, diameter, diameter);
 }
Пример #2
0
 public void render(Graphics2D g2d) {
   g2d.setColor(Color.white);
   GameMethods.setOpacity(g2d, opacity);
   g2d.fillRect(0, 0, game.getWidth(), game.getHeight());
 }