-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocs.html
More file actions
110 lines (87 loc) · 2.59 KB
/
docs.html
File metadata and controls
110 lines (87 loc) · 2.59 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<html>
<head>
<style type="text/css">
.codebox {
background-color: #e7e7e7;
padding: 1em;
margin: 0.5em;
font-family: monospace;
border-style: dashed;
border-width: 1px;
}
</style>
<meta name="AppleTitle" content="LOGO Commands">
<meta name="AppleFont" content="Lucida Grande">
<title>iTurtle Help - LOGO Commands</title>
</head>
<body link="#1AAF1E" vlink="#1AAF1E">
<br>
Welcome to iTurtle -- iTurtle is a fun iPad app that helps teach the basics of computer programming.
iTurtle can also create fairly complex graphics with very simple commands. It's a great way to explore
your createive side. let's start with a simple example. Use the 'copy and paste' feature to grab the code below and paste
it into the command window of iTurtle then hit 'go' to see wha happens. Once you've done that
come back here.
<hr />
<div class='codebox'>
<br />forward 100
<br />right 90
<br />forward 100
<br />right 90
<br />forward 100
<br />right 90
<br />forward 100
</div>
<hr />
Pretty neat huh? Try changing some of the values to see how it effects it. <br />
iTurtle uses Logo as it's command language -- there are a number of commands that it understandss.
<ul>
<li>FORWARD x</li>
<li>BACKWARD x</li>
<li>RIGHT x</li>
<li>LEFT x</li>
<li>PENUP</li>
<li>PENDOWN</li>
<li>HOME - go back to (0,0)</li>
<li>CLEAR - clear the screen</li>
<li>REPEAT x [command]</li>
</ul>
<i>The letter "x" above should be replaced by a number representing the number of
spaces to move (in the case of FORWARD and BACKWARD commands), the number
of degress to turn (in the case of RIGHT and LEFT), or the number of repetitions (REPEAT command). You can also use 'Random' to place it a random number</i>
<br /><br />
<u>Advanced commands:</u>
<br>
<ul>
<li>NEWTURTLE "name - create a new turtle, with a name</li>
<li>TALKTO "name - send commands to a specific turtle</li>
<li>MAKE "name [value] - create a variable with a value</li>
<li>SETCOLOR :[color|variable] - set the drawing color</li>
<li>SETBG :[color|variable] - set the background color</li>
</ul>
Here is a another example using some of the advanced commands.
<div class='codebox'>
<br />newturtle "Fred
<br />talkto "Fred
<br />setcolor 10
<br />make "bgcolor 123
<br />setbg :bgcolor
<br />forward 100
<br />right 90
<br />repeat 4 [forward 100 right 90]
</div>
Here is a 'Escher' like picture
<div class='codebox'>
<br />repeat 6 [
<br /> right 60
<br /> setcolor random
<br /> repeat 6 [
<br /> forward 50
<br /> right 60
<br /> ]
<br />]
</div>
<br>
<br>
<br>
</body>
</html>