forked from itscodenation/tinyTurtleUnit10Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
55 lines (42 loc) · 663 Bytes
/
script.js
File metadata and controls
55 lines (42 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
TinyTurtle.apply(window);
function shape(){
for(var i = 0; i<4000; i=i+1){
forward(25);
right(40);
forward(10);
right(30);
}
}
// Type your function call below
shape();
function shapee(){
for(var i = 0; i<40; i=i+1){
forward(15);
right(8);
forward(10);
right(30);
}
}
// Type your function call below
shapee();
function shapeee(){
for(var i = 0; i<20; i=i+1){
forward(10);
right(4);
forward(5);
right(15);
}
}
// Type your function call below
shapeee();
function shapeeee(){
for(var i = 0; i<10; i=i+1){
forward(40);
right(90);
}
}
for(var i = 0; i<200; i=i+1){
shapeeee();
right(30);
}
// shapeeee();