SHARE
TWEET

Untitled

a guest Sep 20th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. penColor("yellow");
  3. dot(500);
  4.  
  5.  
  6. //Outline
  7.  
  8. //Orange/brown
  9. // red cheeks
  10. //face details-> hands, eyes, mouth, nose
  11.  
  12. penWidth(0.65);
  13. drawPixel (70, 400, 0, 0, 0);
  14. drawPixel (75, 400, 0, 0, 0);
  15. drawPixel (80, 400, 0, 0, 0);
  16. drawPixel (85, 400, 0, 0, 0);
  17. vertLine_two (90, 400, 0, 0, 0);
  18. drawPixel (95, 395, 0, 0, 0);
  19. vertLine_two (100, 395, 0, 0, 0);
  20. horiLine_four(100, 390, 0, 0, 0);
  21. horiLine_four(115, 390, 0, 0, 0);
  22. vertLine_two(70, 400, 0, 0, 0);
  23. horiLine_four (140, 400, 0, 0, 0);
  24. horiLine_two (135, 395, 0, 0, 0);
  25. drawPixel (160, 400, 0, 0, 0);
  26. vertLine_two (160, 400, 0, 0, 0);
  27. drawPixel (155, 390, 0, 0, 0);
  28. drawPixel (160, 385, 0, 0, 0);
  29. vertLine_two (165, 380, 0, 0, 0);
  30. vertLine_four (170,370,0,0,0);
  31. vertLine_four (170,360,0,0,0);
  32. vertLine_four (165, 340, 0, 0, 0);
  33. drawPixel (160,320,0,0,0);
  34. vertLine_two (165,315,0,0,0);
  35. vertLine_four (170,305,0,0,0);
  36. vertLine_three (165,285,0,0,0);
  37. vertLine_three (160,270,0,0,0);
  38. drawPixel (155, 255,0,0,0);
  39. drawPixel (165, 255,0,0,0);
  40. drawPixel (170, 250,0,0,0);
  41. drawPixel (175, 245,0,0,0);
  42. vertLine_four (180,240,0,0,0);
  43. vertLine_four (185,235,0,0,0);
  44. vertLine_four (190,230,0,0,0);
  45. horiLine_four (165,220,0,0,0);
  46. horiLine_four (175,215,0,0,0);
  47. horiLine_two (185,210,0,0,0);
  48. drawPixel (155,230,0,0,0);
  49. drawPixel (160,225,0,0,0);
  50. drawPixel (150,235,0,0,0);
  51. horiLine_two (140,240,0,0,0);
  52. drawPixel (135,245,0,0,0);
  53. horiLine_four (95, 240,0,0,0);
  54. horiLine_four (110, 240,0,0,0);
  55. drawPixel (128.5,240,0,0,0);
  56. drawPixel (90, 245,0,0,0);
  57. horiLine_four (70,240,0,0,0);
  58. horiLine_four (50,235,0,0,0);
  59. horiLine_four (20, 230,0,0,0);
  60. horiLine_two (40,230,0,0,0);
  61. horiLine_two (20,235,0,0,0);
  62. drawPixel (30,235,0,0,0);
  63. horiLine_two (30,241,0,0,0);
  64. horiLine_two (35,246,0,0,0);
  65. horiLine_two (40,251,0,0,0);
  66. horiLine_two (45,256,0,0,0);
  67. horiLine_two (55, 261,0,0,0);
  68. drawPixel (72,261,0,0,0);
  69.  
  70.  
  71.  
  72. //orange shade
  73. //horiLine_four(105,385,255,165,0);
  74. //drawPixel (125, 385, 255,165,0);
  75. //horizLine_two (135, 390, 255,165,0);
  76. //drawPixel (150, 390, 255, 165, 0);
  77. //drawPixel (160,325,255,165,0);
  78. //drawPixel (160,315,255,165,0);
  79. //
  80. //
  81. //
  82. //
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  // horizontal line - 2 pixel
  89.  function horiLine_two(hlx, hly, red, green, blue){
  90.  penRGB(red, green, blue, 1);
  91. drawPixel (hlx, hly, red, green, blue);
  92. drawPixel (hlx+5 , hly, red, green, blue);
  93. }
  94. // horizontal line - 4 pixel
  95. function horiLine_four(hlx, hly, red, green, blue){
  96.   penRGB(red, green, blue, 1);
  97.   drawPixel (hlx, hly, red, green, blue);
  98.   drawPixel (hlx+5, hly, red, green, blue);  
  99.   drawPixel (hlx+10, hly, red, green, blue);
  100.   drawPixel (hlx+15, hly, red, green, blue);  
  101. }
  102. // two pixel vertical line
  103. function vertLine_two (vlx, vly, red, green, blue) {
  104.   penRGB(red, green, blue, 1);
  105.   drawPixel (vlx, vly, red, green, blue);
  106.   drawPixel (vlx, vly-5, red, green, blue);  
  107. }
  108. function vertLine_three (vlx, vly, red, green, blue) {
  109.   penRGB(red, green, blue, 1);
  110.   drawPixel (vlx, vly, red, green, blue);
  111.   drawPixel (vlx, vly-5, red, green, blue);  
  112.   drawPixel (vlx, vly-10, red, green, blue);  }
  113.  
  114.   // four pixel vertical line
  115. function vertLine_four (vlx, vly, red, green, blue) {
  116.   penRGB(red, green, blue, 1);
  117.   drawPixel (vlx, vly, red, green, blue);
  118.   drawPixel (vlx, vly-5, red, green, blue);  
  119.   drawPixel (vlx, vly-10, red, green, blue);
  120.   drawPixel (vlx, vly-15, red, green, blue);
  121. }
  122.  
  123.  
  124. // Basic pixel drawing function
  125. function drawPixel(dpx, dpy, red, green, blue) {
  126.   penUp();
  127.   moveTo(dpx, dpy);
  128.   penDown();
  129.   penRGB(red, green, blue, 1);
  130.   for (var i = 0; i < 5; i++) {
  131.   darkLine();
  132.   turnRight(90);
  133.   moveForward(1);
  134.   turnLeft(90);
  135.   }
  136.   darkLine();
  137.   penUp();
  138. hide();
  139. }
  140.  
  141. // 1/10th of the pixel
  142.   function darkLine() {
  143.   for (var i = 0; i < 6; i++) {
  144.   moveForward(5);
  145.   turnLeft(180);} }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top