You have also seen a couple of new commands. You might have noticed that this second example uses a lot more code. In the next examples you are expected to know the drill. The first example was very simple, so let us go on!Īgain you can type or copy-paste the code to the editor or open the arrow example in the Examples submenu and execute it (using Run → Run) to see the result. Please see the following links to the reference manual for a complete explanation of the new commands: forward, backward, turnleft, and turnright. You will likely understand that forward 100 instructed the turtle to move forward leaving a line, and that turnleft 90 instructed the turtle to turn 90 degrees to the left. This could simply mean two things: you could have made a mistake while copying the commands, or you should still set the correct language for the TurtleScript commands (you can do that by choosing the Settings → Script Language submenu).
This makes reading large blocks of code more easy. That the color of the code changed while you where typing it: this feature is called intuitive highlighting - different types of commands are highlighted differently. This because you have used the forward and the turnleft commands. That - after executing the commands - the turtle moves up, draws a line, and then turns a quarter turn to the left.