Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. //Castillo, Nataly K.; This is my own work NKC, CCHS 2016
  2. import java.applet.Applet;
  3. import java.awt.*;
  4.  
  5. public class Portrait extends Applet
  6. {
  7. public void paint (Graphics page)
  8. {
  9. page.drawOval (65, 55, 220, 200); //head
  10. page.drawArc (145, 150, 60, 50, 190, 160); //mouth
  11.  
  12. page.drawOval (190, 115, 25, 12); // left eye
  13. page.drawOval (130, 115, 25, 12); // right eye
  14.  
  15. page.drawOval (195, 115, 12, 12); //left pupil
  16. page.drawOval (137, 115, 12, 12); //right pupil
  17.  
  18. page.drawArc (165, 105, 75, 150, 60, 60); //left eyebrow
  19. page.drawArc (105, 105, 75, 150, 60, 60); //right eyebrow
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement