大きな円の中にさまざまな色合いの緑の小さな円を描いて「茂み」のように見せようとしていますが、すべての小さな円をの形にする方法がわかりません。大きな円。私はそれを長方形の中に入れる方法しか理解できません。
public void paintComponent(Graphics g)
{
super.paintComponent(g);
for(int i = 0; i < 1000; i++){
int redV = (int) ((Math.random() * 100) + 27);
g.setColor(new Color(red, red + 31, red - 15));
int x = (int) ((Math.random() * 400) + 150);
int y = (int) ((Math.random() * 500) + 200);
g.fillOval(x, y, 50, 50);
}
}