Advertisement
fahimkamal63

Draw Human-face using Graphics

Aug 15th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. /**
  2.  * Draw Human-face using Graphics
  3.  * Date : 16.08.19
  4.  */
  5. package HumanFace;
  6. import java.awt.*;
  7. import java.applet.*;
  8.  
  9. public class HumanFace extends Applet {
  10.  
  11.     public void paint(Graphics g)
  12.     {
  13.         g.drawOval(40, 40, 120, 150);
  14.         g.drawOval(57, 75, 30, 20);
  15.         g.drawOval(110, 75, 30, 20);
  16.         g.fillOval(68, 81, 10, 10);
  17.         g.fillOval(121, 81, 10, 10);
  18.         g.drawOval(85, 100, 30, 30);
  19.         g.fillArc(60, 125, 80, 40, 180, 180);
  20.         g.drawOval(25, 92, 15, 30);
  21.         g.drawOval(160, 92, 15, 30);
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement