リファレンス › Turtles — 141 個のコマンド
ambient
入力: none
出力: list
Returns the turtle's ambient light values, if the turtle is acting as a light. See setambient
show ambient
animate
入力: milliseconds (number) OR movement (word) | frames (list)
出力: 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
入力: none
出力: color
Returns the color of the arrow that indicates the turtle's direction. See setarrowcolor, showarrow, hidearrow
show arrowcolor
arrowdistance
入力: none
出力: distance
Returns the distance of the turtle's directional arrow from the turtle. See setarrowdistance, showarrow, hidearrow
show arrowdistance
arrowsize
入力: none
出力: size
Returns the size of the directional arrow. See setarrowsize, showarrow, hidearrow
show arrowsize
backtrack
別名: bt
入力: none
出力: 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
入力: bale (word)
出力: number
Returns a count of the current active members in a bale.
show balecount "bale
baleindex
入力: none
出力: 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
入力: bale (word)
出力: list
Returns a list of all active bale members by index eg [1 2 5 7]
show balemembers "bale
balename
入力: none
出力: name (word)
Returns the name of the bale the calling turtle belongs to.
show balename
bales
入力: none
出力: list
Returns a list of the currently defined bales. See newbale
show bales
balesync
入力: bale (word)
出力: 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
入力: none
出力: 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
入力: none
出力: list
Returns the current boundaries of the turtle's fence and wrap areas, set with setbounds. See fence, wrap, window.
show bounds
cam
入力: none
出力: none
Returns the current camera (view) turtle.
cam:forward 20
clearhatchqueue
入力: none
出力: none
Clears the calling turtle's hatch queue. Any queued hatch requests are cleared. See hatch, hatchrate
clearhatchqueue
clearmodel
入力: modelname (word)
出力: none
Removes the specified model from memory.
clearmodel "model
clearmodels
入力: none
出力: none
Removes all user-defined models from memory.
clearmodels
clearturtlestack
入力: none
出力: none
Clears (erases) the currently selected 'turtle stack' used by pushturtle and popturtle. See turtlestack, setturtlestack.
clearturtlestack
cloneturtle
入力: sourceturtle (word) | destinationturtle (word)
出力: none
Clones a turtle.
cloneturtle "myrtle "max
copydef
入力: sourceprocedure (word) | procedurecopy (word)
出力: none
Copies a procedure inside a turtle to a procedure with the provided name
copydef "procedure "procedurecopy
copyproc
入力: procedure (word) | target (word)
出力: none
Copies a procedure from the calling turtle to the target turtle
copyproc "procedure "turtle
depopulate
入力: number | bale
出力: 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
入力: none
出力: list
Returns a list of the diffuse light values, if the turtle is a light. See setdiffuse
show diffuse
drain
入力: none
出力: none
Empties the calling turtle's message queue.
drain
fluid
入力: none
出力: 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
入力: none
出力: number
Returns the fluid angle. See setfluidangle
show fluidangle
fluidinterval
入力: none
出力: number
Returns the number of milliseconds fluid waits between steps and angle movements. See setfluidinterval
show fluidinterval
fluidstep
入力: none
出力: number
Returns the fluid step value. See setfluidstep
show fluidstep
follow
別名: fo
入力: turtle (word)
出力: 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
入力: none
出力: turtle (word)
Returns the name of the turtle followed by the calling turtle, if any.
show following
group
入力: none
出力: word
Returns the turtle's current group, if any. See setgroup, groups
show group
groupies
入力: group (word)
出力: list
Returns a list of currently active members of the given group. See setgroup
show groupies "monkees
groups
入力: none
出力: list
Returns a list of the currently active groups. See setgroup
show groups
hatch
入力: list
出力: 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
入力: none
出力: number
Returns the current hatch limit of the calling turtle. See sethatchlimit, hatch
show hatchlimit
hatchrate
入力: none
出力: number
Returns the current hatch rate of the calling turtle. See sethatchrate, hatch
show hatchrate
hatchlingname
入力: workerid (number)
出力: 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
入力: none
出力: none
Returns a list of hatchlings belonging to the selected turtle.
show myrtle:hatchlings
hatchlingworker
入力: turtlename (word)
出力: 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
入力: none
出力: none
Hides all turtles. See showall
hideall
hideturtle
別名: ht
入力: none
出力: none
Hides the turtle's model. Show it again with showturtle.
hideturtle
libby
入力: none
出力: "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
入力: none
出力: 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
入力: none
出力: 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
入力: none
出力: boolean
Returns true if there is a message waiting for the calling turtle. See listen, tell
show listenp
listmodels
入力: none
出力: none
Lists the calling turtle's models
listmodels
listturtles
入力: none
出力: none
Prints a table of the currently defined turtles, showing whether each one is idle or running. See turtles
listturtles
lockmodel
入力: none
出力: 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
入力: target (word)
出力: none
locks the calling turtle's orientation to that of the target turtle. nomimic turns it off
mimic "snappy
mimicking
入力: none
出力: turtle (word)
Returns the name of the turtle the calling turtle is mimicking, if any.
show mimicking
models
入力: none
出力: list
Returns a list of the currently defined models.
show models
[myrtle turtle]
modelscale
入力: none
出力: scale (number)
Returns the calling turtle's current modelscale value. Default is 1. See setmodelscale
show modelscale
myrtle
入力: none
出力: "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
入力: name (word)
出力: none
Creates a new turtle, but unlike newturtle does not switch to it on creation.
nameturtle "fred
newbale
入力: name (word)
出力: 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
入力: name (word) | tagname (word) or [command list] (list)
出力: 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
別名: newtu
入力: name (word)
出力: 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
入力: none
出力: none
Disables the calling turtle's animations, if any. See animate
noanimate
nobalesync
入力: bale (word)
出力: 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
入力: mone
出力: none
Disables fluid mode on the calling turtle.
nofluid
nofollow
別名: nfo
入力: none
出力: none
Disables follow mode in the calling turtle.
nofollow
nolockmodel
入力: none
出力: none
Unlocks the model of the calling turtle so that it faces the turtle's orientation again. See lockmodel, lockmodelp
nolockmodel
parent
入力: none
出力: turtle-name (word)
Returns the name of the calling turtle's direct parent, or nothing if calling turtle is root turtle.
show parent
pausebale
入力: bale (word)
出力: none
Pauses the execution of the specified bale. See resumebale, stopbale, startbale
pausebale "bale
popturtle
別名: popt
入力: none
出力: none
'Pops' a turtle state off of the stack and restores the turtle to it. See pushturtle
popturtle
populate
入力: number | bale or [bale param1 param2…]
出力: 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
入力: none
出力: list
Returns a list of the calling turtle's currently defined procedures.
show procs
pushturtle
別名: pusht
入力: none
出力: 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
入力: turtle (word) | query (list)
出力: result
Allows you to query another turtle's internal state. See in
show query "snappy [position]
release
入力: none
出力: none
Erases all turtles except for Myrtle, Snappy and Libby, and any turtles that have defined procedures.
release
renameturtle
入力: oldname | newname
出力: none
Renames a turtle.
renameturtle "fred "doug
resetmodel
入力: none
出力: none
Resets the turtle's model to its default.
resetmodel
resetturtle
入力: none
出力: none
Resets the calling turtle, which initializes it similarly to reset, but only the calling turtle.
resetturtle
resumebale
入力: bale (word)
出力: none
Resumes the bale of the given name. See suspendbale, stopbale, startbale
resumebale "bale
resumebalemember
入力: bale (word) | member (number)
出力: none
Resumes the execution of the specified bale member. See suspendbalemember
resumebalemember "bale 12
savemodel
入力: modelname (word) | modelfile (word)
出力: none
Saves the specified model name into the specified model file. See loadmodel
savemodel "mymodel "modelfile.mdl
saveturtle
入力: filename
出力: none
Saves the calling turtle's procedures to a file.
saveturtle
setambient
入力: RGBA (list)
出力: 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
入力: distance (number)
出力: none
Sets the distance the turtle's directional arrow is from the turtle's position. See showarrow, hidearrow
setarrowdistance 10
setarrowsize
入力: size (number)
出力: none
Sets the size of the turtle's directional arrow. See showarrow, hidearrow
setdiffuse
入力: RGBA
出力: 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
入力: angle (number)
出力: none
Sets the angular increments by which the turtle turns when fluid mode is on. See fluid
setfluidangle 5
setfluidinterval
入力: number
出力: none
Sets the number of milliseconds fluid waits between steps and angle movements. See fluidinterval
show setfluidinterval
setfluidstep
入力: steps (number)
出力: none
Sets the step increments by which the turtle moves when fluid mode is on. See fluid
setfluidstep 1
setgroup
入力: group (word)
出力: 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
入力: number
出力: 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
入力: number
出力: none
Sets the number of hatchlings that can be hatched every second. See hatchrate
sethatchrate 100
setlight
入力: number
出力: 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
入力: [point] OR [sphere <diameter>] OR [voxel [x1 y1 z1][x2 y2 z2]]
出力: 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
入力: modelname (word) OR [list of instructions]
出力: 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
入力: ratio (number)
出力: none
Scales the turtle's model based on the given ratio.
setmodelscale 2
setmodeltag
入力: tagname (word) | [tagcontents] (list) OR [tag1 tag2…] (list) | [[tagcontents1][tagcontents2]…] (list of lists)
出力: 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
入力: instructions [list]
出力: 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
入力: RGBA (list)
出力: 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
別名: sspd
入力: microseconds (mumber)
出力: 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
入力: number
出力: none
Sets the spot light cutoff value of the calling turtle, if that turtle is a light. See spotcutoff
setspotcutoff 1
setspotexp
入力: number
出力: none
Sets the spot light exponent value of the calling turtle, if that turtle is a light. See spotexp
setspotexp 0
setstate
入力: state (list)
出力: none
Sets the turtle's state. See state
setstate snappy:state
setturtle
別名: tu
入力: turtlename (word)
出力: none
Sets the turtle to execute as to the provided turtlename. Shortcut is tu
setturtle myrtle
tu snappy
setturtlestack
入力: number
出力: 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
別名: sv
入力: turtle (word)
出力: none
Sets the current "view turtle" - the turtle from whose viewpoint the display is generated.
setview "myrtle
setviewfar
入力: distance (number)
出力: 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
入力: angle (number)
出力: none
Sets the turtle's viewing angle, the angle of view displayed in the window. The default is 60
setviewfov 60
setviewnear
入力: distance (number)
出力: 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
入力: list
出力: 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
入力: vectors (list)
出力: 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
入力: percentage (number)
出力: none
Sets the view turtle's camera 'zoom' - the default is 100%
setzoom 50
showall
入力: none
出力: none
Shows all turtles. See hideall
showall
showarrow
入力: none
出力: none
Shows the directional arrow, which indicates the direction the turtle is facing. See hidearrow, setarrowsize, setarrowdistance
showarrow
showturtle
別名: st
入力: none
出力: none
Causes the turtle to display if hidden.
showturtle
sinceactive
入力: turtlename
出力: 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
入力: none
出力: "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
入力: none
出力: none
Returns the specular RGBA values of the calling turtle, if that turtle is acting as a light. See setspecular
show specular
speed
入力: none
出力: 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
入力: none
出力: number
Returns the spot cutoff value of the calling turtle, if that turtle is a light. See setspotcutoff
show spotcutoff
spotexp
入力: none
出力: number
Returns the spot exponent value of the calling turtle, if that turtle is a light. See setspotexp
show spotexp
state
入力: none
出力: list
Returns a list containing the entire turtle state. See setstate
show state
startbale
入力: bale (word) or [bale param1 param2] | initialnumber or [initialnumber workers]
出力: 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
入力: bale (word)
出力: none
Stops the bale of the given name. See startbale, pausebale, newbale
stopbale "bale
stopbalemember
入力: bale (word) | index (number)
出力: 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
入力: bale (word) | member (number)
出力: none
Suspends the bale member, preventing it from executing. See resumebalemember
suspendbalemember "bale 12
swapcolors
入力: none
出力: none
Exchanges the current pen and fill colors and shades.
swapcolors
tandem
入力: target (word) or [target boolx booly boolz] (list)
出力: 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
入力: none
出力: turtle (word)
Returns the name of the turtle the calling turtle is tandeming, if any. See tandem
show tandeming
target
入力: turtle (word)
出力: 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
入力: none
出力: turtle (word)
Returns the name of the turtle the calling turtle is targeting, if any. See target
show targeting
tell
入力: turtle (word) or turtles (list) | message (number, word or list)
出力: none
Sends a message to the target turtle containing the provided number, word or list. See listen
tell snappy "hello
turtle
入力: none
出力: turtlename (word)
Returns the current turtle. See setturtle
show turtle
myrtle
turtles
入力: none
出力: turtlenames (list)
Lists the currently defined turtles.
show turtles
[myrtle libby snappy]
turtlestack
入力: none
出力: 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
入力: none
出力: turtle-units (number)
Returns the value of the far clipping plane. See setviewfar
show viewfar
viewfov
入力: none
出力: angle (number)
Returns the current viewing angle, or field of view. See setviewfov
show viewfov
viewnear
入力: none
出力: turtle-units (number)
Returns the current near clipping plane. See setviewnear
show viewnear
viewturtle
入力: none
出力: word
Returns the current view turtle
show viewturtle
"snappy
viewvectors
入力: none
出力: list
Returns the calling turtle's view vectors. See setviewvectors
show viewvectors
window
入力: none
出力: none
Sets 'window' mode, in which the turtle is unrestricted and can leave the area defined by bounds. See fence, wrap, bounce
window
wrap
入力: none
出力: 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
入力: "animation number
出力: none
Plays the specified animation on the current turtle with the given delay in milliseconds.
fireanimation "walk 100
hidemesh
入力: "meshname
出力: none
Hides the specified mesh in the current turtle's model.
hidemesh "head
premodel
入力: none
出力: word
Returns the name of the turtle's pre-model (the model displayed before the main model loads).
print premodel