Turtle, Observer |
to procedure-name
Anything | A single word which is the name of the procedure you wish to define |
to procedure-name
To add parameters to a procedure, write them after the procedure-name with a colon in front of them, like this:to my-procedure :x :y :z
Inside the procedure body, you may use :x
:y
:z
All procedures must be ended with the word end
Procedures defined in the turtle procedures pane are only callable by turtles. Procedures defined in the observer procedures pane are only callable by the observer. Patches may not have procedures.
to go
fd 1
rt 90
end
go