Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage {
- backdrop White("gallery:General/White")
- actor Robot {
- costume Idle("gallery:Figures/Robot Idle")
- when stage.started {
- this.pen.up();
- this.hide();
- this.setPosition(0,-180);
- this.heading = 0;
- stage.clearPenTrails();
- this.pen.down();
- this.pen.hue = 60;
- this.pen.size = 2;
- tree(40);
- }
- function tree(p){
- if(p > 1){
- this.pen.hue += 10;
- this.move(p);
- this.turnRight(20);
- tree(p-3);
- this.turnLeft(40);
- tree(p-3);
- this.turnRight(20);
- this.move(-p);
- this.pen.hue -= 10;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement