Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.applet.*;
- import java.awt.*;
- public class Kite extends Applet
- {
- public void init()
- {
- setBackground(Color.yellow);
- setForeground(Color.black);
- }
- public void paint(Graphics g)
- {
- g.drawLine(11,277,163,15);
- g.drawLine(163,15,430,165);
- g.drawLine(11,277,241,405);
- g.drawLine(430,165,294,391);
- g.drawLine(263,374,195,500);
- g.drawLine(263,374,382,451);
- g.drawLine(195,500,382,451);
- g.drawLine(163,15,263,374);
- g.drawLine(11,277,430,165);
- g.fillOval(132, 257, 65, 65);
- g.fillOval(280, 225, 65, 65);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment