FANDOM


Syntax

SETTURTLES number

Explanation

SETTURTLES defines the total number of turtles available. They range from 0 to the input of SETTURTLES minus 1. For example, SETTURTLES 16 will create the turtles [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]. Logo starts up with 16 turtles defined and turtle 0 activated.

SETTURTLES creates turtles with the following characteristics:

Position Home, heading 0
Color: 0 (black)
Line width: 1
Text size: 1
Pattern: solid

SETTURTLES accepts any number between 1 and 32767 as input. The number of turtles is limited by the memory of the computer system on which Logo is operating. TURTLES returns the number of turtles that have been defined with SETTURTLES.

Use the TELL, ASK, EACH, and WHO commands to access multiple turtles.

Example

Pc logo 62

This is a SETTURTLES command example. Its executes "SETTURTLES 16 TELLALL 0 15 EACH [SETPC WHO SETH 360/16*WHO] FORWARD 30" command.

? SETTURTLES 16

? TELLALL 0 15

? EACH [SETPC \

? WHO SETH \

? 360/16*WHO]

? FORWARD 30

?

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.