Referencia › Turtles — 141 comandos
ambient
Entrada: none
Salida: list
Returns the turtle's ambient light values, if the turtle is acting as a light. See setambient
show ambient
animate
Entrada: milliseconds (number) OR movement (word) | frames (list)
Salida: none
Animates the calling turtle, either by cycling through a series of models (frames) every x milliseconds regardless of movement, or by cycling through a series of models (frames) during each step of a fluid movement based on a particular command, such as forward. For example, animate 100 [model1 model2 model3] would cycle the turtle through the three given models every 100ms, regardless of if it is moving or not, while animate "forward [model1 model2 model3] will only animate the turtle when it moves forward. If fluid is enabled, multiple frames will be shown during the movement, otherwise only one frame of animation will advance per turtle command. noanimate disables ALL animations applied to the current turtle. Specifying an empty list of frames will also turn a specific animation type off (but leave it at the last model frame animated).
animate 1000 [myrtle shelly]
arrowcolor
Entrada: none
Salida: color
Returns the color of the arrow that indicates the turtle's direction. See setarrowcolor, showarrow, hidearrow
show arrowcolor
arrowdistance
Entrada: none
Salida: distance
Returns the distance of the turtle's directional arrow from the turtle. See setarrowdistance, showarrow, hidearrow
show arrowdistance
arrowsize
Entrada: none
Salida: size
Returns the size of the directional arrow. See setarrowsize, showarrow, hidearrow
show arrowsize
backtrack
También: bt
Entrada: none
Salida: none
Backtrack deletes the last entry in the current turtle's track, that is, it undoes the last movement the current turtle made, the last turtle-specific setting that was changed (such as setpencolor) or the last object the turtle created.
backtrack
balecount
Entrada: bale (word)
Salida: number
Returns a count of the current active members in a bale.
show balecount "bale
baleindex
Entrada: none
Salida: number
Returns the bale 'index number' of the calling bale turtle. If called by a non-bale turtle returns 0. See balename, balemembers, newbale
show baleindex
balemembers
Entrada: bale (word)
Salida: list
Returns a list of all active bale members by index eg [1 2 5 7]
show balemembers "bale
balename
Entrada: none
Salida: name (word)
Returns the name of the bale the calling turtle belongs to.
show balename
bales
Entrada: none
Salida: list
Returns a list of the currently defined bales. See newbale
show bales
balesync
Entrada: bale (word)
Salida: none
Enables 'syncing' of the bale, that is, the bale's graphical state is updated simultaneously once all bale members have executed an iteration of the bale's code. This is the default state of a new bale. See nobalesync, which disables this, and balesyncp which returns true if the bale is syncing (what are you syncing?)
balesync "mybale
bounce
Entrada: none
Salida: none
Sets 'bounce' mode, in which the turtle deflects off of the edges of the area defined by bounds. See fence, wrap, window
bounce
bounds
Entrada: none
Salida: list
Returns the current boundaries of the turtle's fence and wrap areas, set with setbounds. See fence, wrap, window.
show bounds
cam
Entrada: none
Salida: none
Returns the current camera (view) turtle.
cam:forward 20
clearhatchqueue
Entrada: none
Salida: none
Clears the calling turtle's hatch queue. Any queued hatch requests are cleared. See hatch, hatchrate
clearhatchqueue
clearmodel
Entrada: modelname (word)
Salida: none
Removes the specified model from memory.
clearmodel "model
clearmodels
Entrada: none
Salida: none
Removes all user-defined models from memory.
clearmodels
clearturtlestack
Entrada: none
Salida: none
Clears (erases) the currently selected 'turtle stack' used by pushturtle and popturtle. See turtlestack, setturtlestack.
clearturtlestack
cloneturtle
Entrada: sourceturtle (word) | destinationturtle (word)
Salida: none
Clones a turtle.
cloneturtle "myrtle "max
copydef
Entrada: sourceprocedure (word) | procedurecopy (word)
Salida: none
Copies a procedure inside a turtle to a procedure with the provided name
copydef "procedure "procedurecopy
copyproc
Entrada: procedure (word) | target (word)
Salida: none
Copies a procedure from the calling turtle to the target turtle
copyproc "procedure "turtle
depopulate
Entrada: number | bale
Salida: none
Removes the specified number of turtles to the given bale name, based on the lowest-numbered turtles first. See populate, newbale, startbale
depopulate 10 "bale
diffuse
Entrada: none
Salida: list
Returns a list of the diffuse light values, if the turtle is a light. See setdiffuse
show diffuse
drain
Entrada: none
Salida: none
Empties the calling turtle's message queue.
drain
fluid
Entrada: none
Salida: none
Turns on 'fluid' mode, which causes the turtle to move incrementally. If the turtle is hidden, fluid is automatically disabled while it is hidden. Note that this can affect procedures that use the orbit commands while fluid is enabled. See nofluid
fluid
fluidangle
Entrada: none
Salida: number
Returns the fluid angle. See setfluidangle
show fluidangle
fluidinterval
Entrada: none
Salida: number
Returns the number of milliseconds fluid waits between steps and angle movements. See setfluidinterval
show fluidinterval
fluidstep
Entrada: none
Salida: number
Returns the fluid step value. See setfluidstep
show fluidstep
follow
También: fo
Entrada: turtle (word)
Salida: none
Causes the calling turtle to 'follow' the specified turtle. Can only be set if the turtle is the view (camera) turtle.
follow myrtle
following
Entrada: none
Salida: turtle (word)
Returns the name of the turtle followed by the calling turtle, if any.
show following
group
Entrada: none
Salida: word
Returns the turtle's current group, if any. See setgroup, groups
show group
groupies
Entrada: group (word)
Salida: list
Returns a list of currently active members of the given group. See setgroup
show groupies "monkees
groups
Entrada: none
Salida: list
Returns a list of the currently active groups. See setgroup
show groups
hatch
Entrada: list
Salida: none
Hatch creates a new turtle that contains a copy of the calling turtle's global (variable) containers and loop counters at the calling turtle's position and orientation and then executes the requests specified in the provided list in a new thread. Hatchling models are hidden when they are created. The hatchling is automatically given an incremental name based on the name of the turtle that called hatch. Once all the given requests have been executed the hatchling dies and its turtle track is deleted. hatchlimit and hatchrate moderate the creation of hatchlings, the first the total number that can be 'alive' at one time (default 100) and the second the number that can be created each second. If you wish to save its turtle track, you will need to use merge. You can use the parent: prefix (eg parent:fillcolor) to retrieve parental attributes. Finally, hatch calls updatestate if norender or notrackrender is on, to ensure it is hatched in the right place. See merge, die, calm
hatch [right random 360 forward 100]
make "duck 5 hatch [inc "duck show :duck] wait 20 show :duck
6
5
hatchlimit
Entrada: none
Salida: number
Returns the current hatch limit of the calling turtle. See sethatchlimit, hatch
show hatchlimit
hatchrate
Entrada: none
Salida: number
Returns the current hatch rate of the calling turtle. See sethatchrate, hatch
show hatchrate
hatchlingname
Entrada: workerid (number)
Salida: turtlename (word)
Returns the name of the hatchling controlled by the given worker IF that worker was created with a hatchling.
show hatchlingname 17
hatchlings
Entrada: none
Salida: none
Returns a list of hatchlings belonging to the selected turtle.
show myrtle:hatchlings
hatchlingworker
Entrada: turtlename (word)
Salida: workerid (number)
Returns the id number of the worker created with the specified hatchling, if the name supplied is that of a hatchling.
show hatchlingworker "hatchling123
12
hideall
Entrada: none
Salida: none
Hides all turtles. See showall
hideall
hideturtle
También: ht
Entrada: none
Salida: none
Hides the turtle's model. Show it again with showturtle.
hideturtle
libby
Entrada: none
Salida: "libby
Libby is the library turtle. She stores procedures to be used by any other turtle. She does not execute procedures herself. The libby primitive simply returns "libby, to avoid having to put the " on the front of her name when addressing her. See myrtle, snappy
setturtle libby
light
Entrada: none
Salida: number
Returns the light status of the calling turtle, either 0 (not a light), 1 (spot light) or 2 (point light). See setlight
show light
listen
Entrada: none
Salida: message (list)
Returns the message on the top of the messsage queue, which is a list containing two items: the name of the turtle that sent the message, and the message itself (which can be a number, word or list). If there are no messages in the queue, listen will block until there is a message to retrieve.
show listen
listenp
Entrada: none
Salida: boolean
Returns true if there is a message waiting for the calling turtle. See listen, tell
show listenp
listmodels
Entrada: none
Salida: none
Lists the calling turtle's models
listmodels
listturtles
Entrada: none
Salida: none
Prints a table of the currently defined turtles, showing whether each one is idle or running. See turtles
listturtles
lockmodel
Entrada: none
Salida: none
Locks the model of the calling turtle so that it no longer faces the turtle's orientation and stays with the current orientation regardless of subsequent moves. nolockmodel resumes normal behavior. See nolockmodel, lockmodelp
lockmodel
mimic
Entrada: target (word)
Salida: none
locks the calling turtle's orientation to that of the target turtle. nomimic turns it off
mimic "snappy
mimicking
Entrada: none
Salida: turtle (word)
Returns the name of the turtle the calling turtle is mimicking, if any.
show mimicking
models
Entrada: none
Salida: list
Returns a list of the currently defined models.
show models
[myrtle turtle]
modelscale
Entrada: none
Salida: scale (number)
Returns the calling turtle's current modelscale value. Default is 1. See setmodelscale
show modelscale
myrtle
Entrada: none
Salida: "myrtle
Myrtle is the turtle you see when you start up turtleSpaces, and she is the first turtle selected. Her name simply returns "myrtle, so a quote is unneeded when you invoke setturtle myrtle. See snappy, libby
setturtle myrtle
nameturtle
Entrada: name (word)
Salida: none
Creates a new turtle, but unlike newturtle does not switch to it on creation.
nameturtle "fred
newbale
Entrada: name (word)
Salida: none
Creates a new 'bale', or group of turtles. Turtles in bales execute code in two stages: first, each turtle executes the init procedure defined inside of the bale (output can be used to pass parameters to the main procedure), and then second they execute the main procedure defined inside of the bale repeatedly until stopped or suspended. Each turtle in the bale executes consecutively, using a single worker, ensuring they remain synchronised, and reducing load on the host computer.
Bales can also contain triggers and other procedures that can be called from init or main. die causes the calling bale turtle to be removed from the bale and cease existing. The name of a bale turtle is a combination of its numerical index inside the bale, and the name of the bale itself, eg bale12. newbale is declared in the workspace similarly to newturtle. You start a bale using startbale.
Global containers are shared between bale members, and so containers specific to individual bale members need to be declared private or local (local variables only exist for the specific iteration of the bale code execution).
See startbale, stopbale, pausebale, resumebale, balename, baleindex, balemembers, populate, depopulate, balep, baleactivep, balepausedp, baleindexp
newbale "bale
newmodel
Entrada: name (word) | tagname (word) or [command list] (list)
Salida: none
Creates a new model, using either the contents of the specified tag, or the provided list of turtle commands. Note that due to the nature of models, setvectors does not work properly inside of a model definition. See setmodel
newmodel "sphere [icosphere 20]
newmodel "fromtag "tag
newturtle
También: newtu
Entrada: name (word)
Salida: none
Creates a new turtle with the given name. The turtle is hidden by default, and is hidden when reset is called.
newturtle "daisy
noanimate
Entrada: none
Salida: none
Disables the calling turtle's animations, if any. See animate
noanimate
nobalesync
Entrada: bale (word)
Salida: none
Disables bale syncing, which causes all graphical bale updates to happen at the end of an iteration of collective execution. See balesync
nobalesync "mybale
nofluid
Entrada: mone
Salida: none
Disables fluid mode on the calling turtle.
nofluid
nofollow
También: nfo
Entrada: none
Salida: none
Disables follow mode in the calling turtle.
nofollow
nolockmodel
Entrada: none
Salida: none
Unlocks the model of the calling turtle so that it faces the turtle's orientation again. See lockmodel, lockmodelp
nolockmodel
parent
Entrada: none
Salida: turtle-name (word)
Returns the name of the calling turtle's direct parent, or nothing if calling turtle is root turtle.
show parent
pausebale
Entrada: bale (word)
Salida: none
Pauses the execution of the specified bale. See resumebale, stopbale, startbale
pausebale "bale
popturtle
También: popt
Entrada: none
Salida: none
'Pops' a turtle state off of the stack and restores the turtle to it. See pushturtle
popturtle
populate
Entrada: number | bale or [bale param1 param2…]
Salida: none
Adds the specified number of turtles to the given bale name. If a list is provided for the bale name, the provided parameters are passed to the init procedure within the bale by each new bale member. See depopulate, newbale, startbale
populate 10 "bale
procs
Entrada: none
Salida: list
Returns a list of the calling turtle's currently defined procedures.
show procs
pushturtle
También: pusht
Entrada: none
Salida: none
'Pushes' the state of the turtle on to a stack (position, pen color, etc.) popturtle pulls the state back off of the stack again. Imagine drawing a tree with randomly extending branches. You can construct it by pushing the turtle's state at each junction, then popping the turtle to return to it, then the previous one, etc. See popturtle
pushturtle
query
Entrada: turtle (word) | query (list)
Salida: result
Allows you to query another turtle's internal state. See in
show query "snappy [position]
release
Entrada: none
Salida: none
Erases all turtles except for Myrtle, Snappy and Libby, and any turtles that have defined procedures.
release
renameturtle
Entrada: oldname | newname
Salida: none
Renames a turtle.
renameturtle "fred "doug
resetmodel
Entrada: none
Salida: none
Resets the turtle's model to its default.
resetmodel
resetturtle
Entrada: none
Salida: none
Resets the calling turtle, which initializes it similarly to reset, but only the calling turtle.
resetturtle
resumebale
Entrada: bale (word)
Salida: none
Resumes the bale of the given name. See suspendbale, stopbale, startbale
resumebale "bale
resumebalemember
Entrada: bale (word) | member (number)
Salida: none
Resumes the execution of the specified bale member. See suspendbalemember
resumebalemember "bale 12
savemodel
Entrada: modelname (word) | modelfile (word)
Salida: none
Saves the specified model name into the specified model file. See loadmodel
savemodel "mymodel "modelfile.mdl
saveturtle
Entrada: filename
Salida: none
Saves the calling turtle's procedures to a file.
saveturtle
setambient
Entrada: RGBA (list)
Salida: none
Sets the ambient light values (red, green, blue, and opacity) of the calling turtle, if the turtle is acting as a light. See ambient
setambient [50 50 50 100]
setarrowdistance
Entrada: distance (number)
Salida: none
Sets the distance the turtle's directional arrow is from the turtle's position. See showarrow, hidearrow
setarrowdistance 10
setarrowsize
Entrada: size (number)
Salida: none
Sets the size of the turtle's directional arrow. See showarrow, hidearrow
setdiffuse
Entrada: RGBA
Salida: none
Sets the diffuse light RGBA values of the calling turtle, if that turtle is acting as a light. See diffuse
setdiffuse [50 50 50 100]
setfluidangle
Entrada: angle (number)
Salida: none
Sets the angular increments by which the turtle turns when fluid mode is on. See fluid
setfluidangle 5
setfluidinterval
Entrada: number
Salida: none
Sets the number of milliseconds fluid waits between steps and angle movements. See fluidinterval
show setfluidinterval
setfluidstep
Entrada: steps (number)
Salida: none
Sets the step increments by which the turtle moves when fluid mode is on. See fluid
setfluidstep 1
setgroup
Entrada: group (word)
Salida: none
Sets the turte's group to the provided name. Useful to keep track of hatchlings of a particular ilk. nearme and near can be used to detect members of specific groups. See also groupies, which returns the group's active members, group and groups.
setgroup "chipmunks
sethatchlimit
Entrada: number
Salida: none
Sets the total number of hatchlings allowed to exist belonging to the calling turtle at any one time. Additional hatch requests are queued until existing hatchlings cease execution. The default hatchlimit is 100. See hatchlimit, clearhatchqueue.
sethatchlimit 20
sethatchrate
Entrada: number
Salida: none
Sets the number of hatchlings that can be hatched every second. See hatchrate
sethatchrate 100
setlight
Entrada: number
Salida: none
Sets the light status of the calling turtle to either 0 (not a light), 1 (spot light) or 2 (point light). See light
setlight 1
setlockelevationmode
Entrada: [point] OR [sphere <diameter>] OR [voxel [x1 y1 z1][x2 y2 z2]]
Salida: none
Sets the method used by lockelevation. Point simply alters the elevation when the turtle's position strays into a new sector. Sphere alters the position if any of the area of a sphere of the specified diameter surrounding the turtle's position enters a new sector. Voxel does similarly with the area of the voxel offset from the turtle's position, as such the first list values need to be negative in order to include the turtle position within that area. See lockelevationmode
setlockelevationmode [sphere 5]
setlockelevationmode [voxel [-10 -10 -10][10 10 10]]
setmodel
Entrada: modelname (word) OR [list of instructions]
Salida: none
Sets the turtle model to the specified model name or constructs a temporary model using the given list of instructions. Note that you cannot execute a procedure inside of a setmodel list, and you should use tags and newmodel to construct a model in that way. Note that in physics modes, the center of gravity of the turtle model is its origin (starting) point – so you may need to move the turtle when you start the model to compensate. See newmodel, setmodelscale Built-in models: myrtle, turtle, spaceship, astronaut, plane, invisible
setmodel "plane
setmodelscale
Entrada: ratio (number)
Salida: none
Scales the turtle's model based on the given ratio.
setmodelscale 2
setmodeltag
Entrada: tagname (word) | [tagcontents] (list) OR [tag1 tag2…] (list) | [[tagcontents1][tagcontents2]…] (list of lists)
Salida: none
Replaces the contents of the given tag with the given contens in the model of the calling turtle. Allows for more complex model animations, but these must be managed with user code, as opposed to animate. See setmodel, begintag
setmodeltag "mytag [rt 90]
setmodeltag [mytag1 mytag2] [[rt 90][fd 20]]
setpremodel
Entrada: instructions [list]
Salida: none
Allows you to insert directional and movement instructions between the end of the turtle track and the start of the model. Mostly used to alter the orientation of the model, for example to point the turtle upwards when orbiting a point, rather than pointing at the point, as in the startup animation, or to rotate the model without affecting its logical orientation. Note that premodel obeys modelscale, and so premodel instructions are multiplied by the modelscale value if set. setpremodel does not cause the physics body (hull) to be regenerated and as such may cause odd effects in physical modes.
setpremodel [up 90]
setspecular
Entrada: RGBA (list)
Salida: none
Sets the specular RGBA values of the calling turtle, if the turtle is acting as a light. See specular
setspecular [50 50 50 100]
setspeed
También: sspd
Entrada: microseconds (mumber)
Salida: none
Sets the number of microseconds the turtle sleeps between executing each instruction, an instruction being a fully formed statement, such as print position, or right sum 20 30. The default is 500 (half of a millisecond). Note that if you set this to a low value, or 0, you may use a large percentage of your host computer's available CPU time, and may cause issues with your operating system's overall performance! See speed
setspeed 200
setspotcutoff
Entrada: number
Salida: none
Sets the spot light cutoff value of the calling turtle, if that turtle is a light. See spotcutoff
setspotcutoff 1
setspotexp
Entrada: number
Salida: none
Sets the spot light exponent value of the calling turtle, if that turtle is a light. See spotexp
setspotexp 0
setstate
Entrada: state (list)
Salida: none
Sets the turtle's state. See state
setstate snappy:state
setturtle
También: tu
Entrada: turtlename (word)
Salida: none
Sets the turtle to execute as to the provided turtlename. Shortcut is tu
setturtle myrtle
tu snappy
setturtlestack
Entrada: number
Salida: none
Sets (selects) the 'turtle stack' used by pushturtle and popturtle. See turtlestack, which returns the calling turtles current stack number, and clearstack, which clears the selected stack.
setturtlestack 2
setview
También: sv
Entrada: turtle (word)
Salida: none
Sets the current "view turtle" - the turtle from whose viewpoint the display is generated.
setview "myrtle
setviewfar
Entrada: distance (number)
Salida: none
Sets the far clipping plane, the distance at which OpenGL objects stop being rendered or are clipped. This must be set by the view turtle. See setviewnear
setviewfar 1000
setviewfov
Entrada: angle (number)
Salida: none
Sets the turtle's viewing angle, the angle of view displayed in the window. The default is 60
setviewfov 60
setviewnear
Entrada: distance (number)
Salida: none
Sets the near clipping plane. OpenGL objects closer than this distance are not rendered or are clipped. This must be set by the view turtle. See setviewfar
setviewpoint
Entrada: list
Salida: none
Positions the view by the provided [X (left-right) Y (down-up) Z (back-forward)] list of turtle units, where a negative value has the first effect and a positive value has the second effect.
setviewpoint [10 -10 0]
setviewvectors
Entrada: vectors (list)
Salida: none
Sets arbitrary view vectors for the current turtle. When selected as a view (camera) turtle, if viewvectors are set the display will always be rendered in the direction and orientation specified by those vectors, regardless of the turtle's orientation. To return to using the turtle's orientation, specify an empty list, eg: setviewvectors []
setviewvectors vectors
setzoom
Entrada: percentage (number)
Salida: none
Sets the view turtle's camera 'zoom' - the default is 100%
setzoom 50
showall
Entrada: none
Salida: none
Shows all turtles. See hideall
showall
showarrow
Entrada: none
Salida: none
Shows the directional arrow, which indicates the direction the turtle is facing. See hidearrow, setarrowsize, setarrowdistance
showarrow
showturtle
También: st
Entrada: none
Salida: none
Causes the turtle to display if hidden.
showturtle
sinceactive
Entrada: turtlename
Salida: milliseconds
Returns the number of milliseconds since the turtle added to its track, by moving, creating an object or changing a turtle parameter such as the pen color.
print myrtle:sinceactive
snappy
Entrada: none
Salida: "snappy
Snappy is the default 'view' turtle, one of the three turtles created when a space is initialized, and the first turtle from whose perspective you see when you start up turtleSpaces. While other turtles (except for Libby) can both create things and be seen out from, Snappy can only move and be used as a view turtle, and cannot create items in his 'turtle track' (eg create lines or shapes). See myrtle, libby
setview snappy
specular
Entrada: none
Salida: none
Returns the specular RGBA values of the calling turtle, if that turtle is acting as a light. See setspecular
show specular
speed
Entrada: none
Salida: microseconds (number)
Returns the current speed value, the number of microseconds the turtle 'sleeps' between the execution of each instruction. The default speed value is 500 microseconds, or half a millisecond. See setspeed
show speed
spotcutoff
Entrada: none
Salida: number
Returns the spot cutoff value of the calling turtle, if that turtle is a light. See setspotcutoff
show spotcutoff
spotexp
Entrada: none
Salida: number
Returns the spot exponent value of the calling turtle, if that turtle is a light. See setspotexp
show spotexp
state
Entrada: none
Salida: list
Returns a list containing the entire turtle state. See setstate
show state
startbale
Entrada: bale (word) or [bale param1 param2] | initialnumber or [initialnumber workers]
Salida: none
Starts a bale executing if not already executing and creates the given initialnumber of bale turtles, passing the optional parameters to the init procedure inside the bale if provided. If the number of balemembers is provided as a list, the second parameter in that list is the number of workers to distribute the turtles across (which can be used for performance tuning.) Note that a bale can be started with 0 members, which does not automatically cause a bale to cease operating, it just doesn't execute any code unless it has at least one active member. It can only be fully stopped by calling stopbale. See newbale, stopbale, pausebale, resumebale
startbale "bale 20
startbale [bale param1 param2] 10
stopbale
Entrada: bale (word)
Salida: none
Stops the bale of the given name. See startbale, pausebale, newbale
stopbale "bale
stopbalemember
Entrada: bale (word) | index (number)
Salida: none
Stops the bale member of the given index in the given bale. Similar to as if the bale member called die. See startbale, suspendbalemember, resumebalemember
stopbalemember "bale 12
suspendbalemember
Entrada: bale (word) | member (number)
Salida: none
Suspends the bale member, preventing it from executing. See resumebalemember
suspendbalemember "bale 12
swapcolors
Entrada: none
Salida: none
Exchanges the current pen and fill colors and shades.
swapcolors
tandem
Entrada: target (word) or [target boolx booly boolz] (list)
Salida: none
keeps calling turtle in the same relative position (based on the orientation) of the target turtle as when tandem was called (for example, if the target moves, or rotates). If the calling turtle changes position using FD, etc., its relative position for the purposes of tandem is updated. If tandem's arguments are provided as a list, the tandeming turtle only updates if the target turtle moves on the specified axes. tandem does not update the orientation of the calling turtle, only its position. notandem turns it off
tandem "myrtle
tandeming
Entrada: none
Salida: turtle (word)
Returns the name of the turtle the calling turtle is tandeming, if any. See tandem
show tandeming
target
Entrada: turtle (word)
Salida: none
Causes the calling turtle to face the specified target turtle. A turtle may only target one turtle at a time. notarget turns it off. See notarget
target "myrtle
targeting
Entrada: none
Salida: turtle (word)
Returns the name of the turtle the calling turtle is targeting, if any. See target
show targeting
tell
Entrada: turtle (word) or turtles (list) | message (number, word or list)
Salida: none
Sends a message to the target turtle containing the provided number, word or list. See listen
tell snappy "hello
turtle
Entrada: none
Salida: turtlename (word)
Returns the current turtle. See setturtle
show turtle
myrtle
turtles
Entrada: none
Salida: turtlenames (list)
Lists the currently defined turtles.
show turtles
[myrtle libby snappy]
turtlestack
Entrada: none
Salida: number
Returns the current turtle stack, the stack used by pushturtle and popturtle. See clearstack, which clears the stack, and setturtlestack, which allows you to select (and use) a different turtle stack, with the ability to return to the current one, whose default value is 1.
show turtlestack
1
viewfar
Entrada: none
Salida: turtle-units (number)
Returns the value of the far clipping plane. See setviewfar
show viewfar
viewfov
Entrada: none
Salida: angle (number)
Returns the current viewing angle, or field of view. See setviewfov
show viewfov
viewnear
Entrada: none
Salida: turtle-units (number)
Returns the current near clipping plane. See setviewnear
show viewnear
viewturtle
Entrada: none
Salida: word
Returns the current view turtle
show viewturtle
"snappy
viewvectors
Entrada: none
Salida: list
Returns the calling turtle's view vectors. See setviewvectors
show viewvectors
window
Entrada: none
Salida: none
Sets 'window' mode, in which the turtle is unrestricted and can leave the area defined by bounds. See fence, wrap, bounce
window
wrap
Entrada: none
Salida: none
Sets the turtle in wrap mode, which means if the turtle reaches the edge of the area defined by setbounds, it wraps to the opposite side of that area. See window, fence.
wrap
fireanimation
Entrada: "animation number
Salida: none
Plays the specified animation on the current turtle with the given delay in milliseconds.
fireanimation "walk 100
hidemesh
Entrada: "meshname
Salida: none
Hides the specified mesh in the current turtle's model.
hidemesh "head
premodel
Entrada: none
Salida: word
Returns the name of the turtle's pre-model (the model displayed before the main model loads).
print premodel