Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. drawallLeftBuildings();
  2. function drawallLeftBuildings() {
  3. drawBuildingOne();
  4. drawBuildingTwo();
  5. moveTo(15, 390);
  6. for (var i = 0; i < 6; i++) {
  7. drawInsideOne();
  8. }
  9. Fix();
  10. penUp();
  11. moveTo(80, 385);
  12. for (var m = 0; m < 28; m++) {
  13. drawInsideTwo();
  14. }
  15. }
  16. function drawBuildingOne() {
  17. penUp();
  18. moveTo(10, 390);
  19. penRGB(153, 50, 204, 1);
  20. penDown();
  21. moveForward(260);
  22. turnTo(40);
  23. moveForward(40);
  24. penUp();
  25. moveTo(60, 390);
  26. turnLeft(40);
  27. penDown();
  28. moveForward(260);
  29. turnLeft(40);
  30. moveForward(40);
  31. penUp();
  32. moveTo(10, 130);
  33. turnRight(40);
  34. turnRight(90);
  35. penDown();
  36. moveForward(50);
  37. penUp();
  38. moveTo(10, 390);
  39. penDown();
  40. moveForward(50);
  41. penUp();
  42. }
  43. function drawBuildingTwo() {
  44. moveTo(80, 390);
  45. penRGB(178, 34, 34, 1);
  46. turnLeft(90);
  47. penDown();
  48. moveForward(230);
  49. turnRight(90);
  50. moveForward(10);
  51. turnLeft(90);
  52. moveForward(25);
  53. turnRight(90);
  54. moveForward(35);
  55. turnRight(90);
  56. moveForward(25);
  57. turnLeft(90);
  58. moveForward(10);
  59. turnRight(90);
  60. moveForward(230);
  61. turnRight(90);
  62. moveForward(55);
  63. turnRight(90);
  64. penUp();
  65. }
  66. function drawInsideOne() {
  67. penRGB(153, 50, 204, 1);
  68. penDown();
  69. moveForward(260);
  70. penUp();
  71. turnRight(90);
  72. moveForward(4);
  73. turnRight(90);
  74. penDown();
  75. moveForward(260);
  76. turnLeft(90);
  77. moveForward(4);
  78. turnLeft(90);
  79. }
  80. function Fix() {
  81. penUp();
  82. moveTo(10, 390);
  83. penDown();
  84. moveForward(260);
  85. }
  86. function drawInsideTwo() {
  87. penRGB(178, 34, 34, 1);
  88. penDown();
  89. turnRight(90);
  90. moveForward(55);
  91. turnLeft(90);
  92. moveForward(4);
  93. turnLeft(90);
  94. moveForward(55);
  95. turnRight(90);
  96. moveForward(4);
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement