The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
6
By Guest on 4th February 2019 06:23:02 PM | Syntax: TEXT | Views: 12



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. penUp();
  2. moveTo(200,200);
  3. drawTriangle(150,5);
  4. moveTo(300,400);
  5. drawTriangle(200,10);
  6.  
  7. function drawTriangle(sideL, girth)
  8. {
  9.   penDown();
  10.   penWidth(girth);
  11.   moveForward(sideL);
  12.   turnLeft(360/3);
  13.   moveForward(sideL);
  14.   turnLeft(360/3);
  15.   moveForward(sideL);
  16.   turnLeft(360/3);
  17.   penUp();
  18. }



  • Recent Pastes