- XLogo 3D
To switch to 3D mode, use the primitive Perspective. To return to 2D mode use Window, Wrap or Fence (see Drawing).
Primitive | Alt | Action |
---|---|---|
Perspective | 3D | Switch to 3D mode. |
SetXYZ x y z SetZ z SetOrientation [r p h] |
Move turtle to position x y z. Move turtle to depth position z. Set turtle's orientation (roll, pitch, heading). |
|
LeftRoll n RightRoll n SetRoll n |
LR RR |
Roll turtle left by n degrees. Roll turtle right by n degrees. Set turtle's roll angle to n degrees. |
DownPitch n UpPitch n SetPitch n |
Down Up |
Pitch turtle down by n degrees. Pitch turtle up by n degrees. Set turtle's pitch angle to n degrees. |
Underlined Set can be removed from a primitive name in order to return information.
eg. SetHeading sets the heading of the turtle. Heading returns the heading of the turtle.
3D viewer
Four pairs of primitives for polygons, lines, points and text. If not used, nothing will be drawn in the 3D Viewer window.
Primitive | Action |
---|---|
View3D | Launch interactive 3D viewer, with fog and light controllers. |
PolyStart PolyEnd |
Start recording following turtle moves as polygons. Stop polygon recording. |
LineStart LineEnd |
Start recording following turtle moves as lines. Stop line recording. |
PointStart PointEnd |
Start recording following turtle moves as points. Stop point recording. |
TextStart TextEnd |
Start recording following as text. Stop text recording. |
Note