Facebook
From Sani SAHIROU, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 120
  1. // Set up the canvas
  2. size(200, 300);
  3. background(230);
  4.  
  5. // The contour of the face
  6. fill(226, 182, 129);
  7. ellipse(100, 150, 100, 200);
  8.  
  9. // The contours of the eyes
  10. fill(255);
  11. ellipse(75, 120, 30, 15);
  12. ellipse(125, 120, 30, 15);
  13.  
  14. // Pupil contours
  15. fill(0);
  16. ellipse(75, 120, 15, 7);
  17. ellipse(125, 120, 15, 7);
  18.  
  19. noFill();
  20.  
  21. // The contours of the nose
  22. rect(95, 120, 10, 50);
  23. quad(95, 170, 105, 170, 110, 180, 90, 180);
  24. fill(139, 108, 66);
  25. ellipse(100, 195, 30, 5);
  26. ellipse(100, 198, 30, 5);
  27. stroke(226, 182, 129);
  28. line(95+1, 170, 105-1, 170);
  29.  
  30. // Nostrils
  31. fill(255);
  32. stroke(0);
  33. ellipse(97, 177, 5, 3);
  34. ellipse(104, 177, 5, 3);
  35.  
  36. noFill();
  37. noStroke();