
A nice sequence of the moon.
- Code: Select all
import java.applet.*;
import java.awt.*;
public class poo extends Applet
{
public void paint (Graphics g)
{
setBackground(Color.black);
Color ass = new Color(255,255,255);
g.setColor(ass);
g.fillOval(20,200,100,100);
g.fillOval(130,200,100,100);
g.fillOval(240,200,100,100);
g.fillOval(350,200,100,100);
g.fillOval(460,200,100,100);
g.fillOval(570,200,100,100);
g.fillOval(680,200,100,100);
g.fillOval(790,200,100,100);
//g.fillOval(900,200,100,100);
//g.fillOval(1010,200,100,100);
//g.fillOval(1120,200,100,100);
Color pooo = new Color(0,0,0);
g.setColor(pooo);
//g.fillOval(20,200,100,100);
g.fillOval(30,200,100,100); // 1
//g.fillOval(130,200,100,100);
g.fillOval(150,200,90,100); // 2
//g.fillOval(240,200,100,100);
g.fillOval(270,200,80,100); // 3
//g.fillOval(350,200,100,100);
g.fillOval(390,200,70,100); //4
//g.fillOval(460,200,100,100);
g.fillOval(510,200,60,100); // 5
//g.fillOval(570,200,100,100);
g.fillOval(630,200,50,100); // 7
//g.fillOval(680,200,100,100);
g.fillOval(750,200,40,100); //8
//g.fillOval(790,200,100,100);
g.fillOval(800,100,100,100); //9
//g.fillOval(900,200,100,100);
//g.fillOval(1010,200,100,100);
//g.fillOval(1120,200,100,100);
}
}