/*
 * @author Drew Inman
 * @date 02/24/2016
 * @course CSCI 1130-51
 * @project Milky Way - Make a ton of different sized, random colored circles!
 * @notes: Nothing fancy to look at. Meets the assignment requirements!
 */

import java.awt.*;
import javax.swing.*;
import java.util.*;

public class MilkyWay extends JApplet{
    
    Color randomColor;
    Random random = new Random();
    
    public void init (){
        this.setSize(800,600);
        getContentPane().setBackground(Color.BLACK);
    }
    public void paint(Graphics gr){
        super.paint(gr);
        for(int i=0;i<=100;i++){
            int diameter = random.nextInt(100);
            int r = (int)(Math.random()*256);
            int g = (int)(Math.random()*256);
            int b = (int)(Math.random()*256);
            randomColor = new Color(r,g,b);
            gr.setColor(randomColor);
            gr.fillOval(random.nextInt(750),random.nextInt(550),diameter,diameter);
        }
    }
}