import java.awt.*;
import java.awt.event.*;


public class Kadai extends Frame {
	MyCanvas mc;

	public Kadai() {
		super();
		setTitle("^~ɍ炢");
		setSize(800,800);
		setLayout(null);

		mc = new MyCanvas();
		mc.setBounds(0,0,800,800);
		this.add(mc);
	}

	 public static void main (String args []) {
		new Kadai().show();
	}

	class MyCanvas extends Canvas {

		public void paint(Graphics g) {

				int i = 0;

				//z
				while ( i <= 255){
				Color c = new Color(255,255-i/3,255-i/2);
			    g.setColor(c);
				g.fillOval(-30,-30,500-i,500-i);
				i ++;
			   }

			   //
			   i = 0;
				while ( i <= 255){
				Color e = new Color(i,255,i);
			    g.setColor(e);
				g.drawLine(0,800-i,800,800-i);
				i ++;
			   }

			   //s

			   int x = 0;
			   int y = 0;

			   int r2 = (int)(Math.random() * 100);
			   while ( y <= 400){
			   		 	 g.fillOval(400+x,800-y,10,10);
			   		 	 y++;
						Color d = new Color(100,200+x,100);
			            g.setColor(d);
			   		 	 int r = (int)(Math.random() * 2);
			   		 	 if ( r == 1){
							 x = x -1;
						 }else{
							 x = x +1;
						 }
	 		   }

	 		   //
	 		   	 		i = 0;
	 		   	 		 while ( i <= 40){
						int r3 = (int)(Math.random() * 80);
			   			int r4 = (int)(Math.random() * 80);
			   			int  r5 = (int)(Math.random() *50);
			   			if(r5 > 15){
	 		  			Color f = new Color(205 + r5,100,180 + r5);
			   			g.setColor(f);
						} else {
						Color j = new Color(100 + r5,100, 205 + r5);
			   			g.setColor(j);
					    }
			   			g.fillOval(350+ r3, 350+r4,50+r5/10,50+r5/10);
			   			i++;
						}

			   //
			   			   i = 0;
			   			   while ( i <= 400){
			   			   int r6 = (int)(Math.random() * 800);
			   			    int r7 = (int)(Math.random() * 800);
			   			   Color h = new Color(240,240,255);
			   			   g.setColor(h);
			   			   g.fillOval(r6,r7,8,8);
			   			   i ++;
			   }


     }

	}
}

