Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. stage {
  2. backdrop White("gallery:General/White")
  3.  
  4.  
  5.  
  6. actor Robot {
  7. costume Idle("gallery:Figures/Robot Idle")
  8. when stage.started {
  9. this.pen.up();
  10. this.hide();
  11. this.setPosition(0,-180);
  12. this.heading = 0;
  13. stage.clearPenTrails();
  14. this.pen.down();
  15. this.pen.hue = 60;
  16. this.pen.size = 2;
  17. tree(40);
  18. }
  19.  
  20. function tree(p){
  21. if(p > 1){
  22. this.pen.hue += 10;
  23. this.move(p);
  24. this.turnRight(20);
  25. tree(p-3);
  26. this.turnLeft(40);
  27. tree(p-3);
  28. this.turnRight(20);
  29. this.move(-p);
  30. this.pen.hue -= 10;
  31.  
  32. }
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement