aakash2310

Kite

Mar 8th, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. import java.applet.*;
  2. import java.awt.*;
  3.  
  4. public class Kite extends Applet
  5. {
  6.     public void init()
  7.     {
  8.             setBackground(Color.yellow);
  9.             setForeground(Color.black);
  10.     }
  11.     public void paint(Graphics g)
  12.     {
  13.         g.drawLine(11,277,163,15);
  14.         g.drawLine(163,15,430,165);
  15.  
  16.         g.drawLine(11,277,241,405);
  17.         g.drawLine(430,165,294,391);
  18.  
  19.         g.drawLine(263,374,195,500);
  20.         g.drawLine(263,374,382,451);
  21.  
  22.         g.drawLine(195,500,382,451);
  23.         g.drawLine(163,15,263,374);
  24.  
  25.         g.drawLine(11,277,430,165);
  26.  
  27.         g.fillOval(132, 257, 65, 65);
  28.         g.fillOval(280, 225, 65, 65);
  29.  
  30.  
  31.     }
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment