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



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. penUp();
  2. moveTo(150,150);
  3. drawSquare(50,10);
  4. moveTo(250,300);
  5. drawSquare(30,20);
  6.  
  7. function drawSquare(size, borderWidth){
  8.   penDown();
  9.   penWidth(borderWidth);
  10.   moveForward(size);
  11.   turnLeft();
  12.   moveForward(size);
  13.   turnLeft();
  14.   moveForward(size);
  15.   turnLeft();
  16.   moveForward(size);
  17.   penUp();
  18. }



  • Recent Pastes