-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
56 lines (54 loc) · 771 Bytes
/
script.js
File metadata and controls
56 lines (54 loc) · 771 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
55
56
TinyTurtle.apply(window);
right(45);
forward(25);
right(90);
forward(25);
right(135);
forward(35);
left(90);
forward(60);
left(90);
forward(35);
left(90);
forward(60);
right(90);
penUp(); /*Function that helps move w/o drawing*/
forward(50);
penDown(); /*Goes back to normal*/
forward(7);
left(7);
forward(7);
left(7);
forward(7);
forward(7);
left(7);
forward(7);
left(7);
forward(7);
left(7);
forward(7);
left(7);
forward(7);
left(138); //the turn
forward(7);
left(7);
forward(7);
left(7);
forward(7);
forward(7);
left(7);
forward(7);
left(7);
forward(7);
left(7);
forward(7);
left(7);
forward(7); //this code is eye shape one
penUp();
forward(10);
penDown(); //just moved turtle away
stamp();
/*
Is there a way to make this code shorter?
Or at least more compact.
*/