Chapter 11. Graphics

Multiple Turtles
SETTURTLE
TURTLE
HASOWNPENP
TURTLES
BITMAPTURTLE
NOBITMAPTURTLE
SETTURTLEMODE
TURTLEMODE
ASK
Turtle Motion
FORWARD
BACK
LEFT
RIGHT
LEFTROLL
RIGHTROLL
DOWNPITCH
UPPITCH
SETPOS
SETPOSXYZ
SETXY
SETXYZ
SETX
SETY
SETZ
HOME
SETHEADING
SETROLL
SETPITCH
SETORIENTATION
ELLIPSEARC
ELLIPSEARC2
ELLIPSE
ELLIPSE2
ARC
ARC2
CIRCLE
CIRCLE2
Turtle Motion Queries
POS
POSXYZ
XCOR
YCOR
ZCOR
HEADING
ROLL
PITCH
ORIENTATION
TOWARDS
TOWARDSXYZ
DISTANCE
DISTANCEXYZ
PIXEL
SCRUNCH
Turtle Control
SHOWTURTLE
HIDETURTLE
CLEAN
CLEARSCREEN
WRAP
WINDOW
FENCE
PERSPECTIVE
FILL
SLOWDRAW
LABEL
SETPIXEL
FONTFACENAMES
SETLABELFONT
LABELFONT
LABELSIZE
Window Control
TEXTSCREEN
FULLSCREEN
SPLITSCREEN
SETSCRUNCH
REFRESH
NOREFRESH
ZOOM
SCROLLX
SCROLLY
SETFOCUS
GETFOCUS
ICON
UNICON
MINIMIZE
RESTORE
MAXIMIZE
WINDOWSET
Using Color
Understand Your Orientation in 3D
Drawing 3D Solids
POLYSTART
POLYEND
POLYVIEW
SETLIGHT
LIGHT
Polygon Restrictions
Restriction #1: A polygon's first 3 vertices must form a triangle
Restriction #2: A polygon must be convex
Restriction #3: A polygon must be planar
Polygon Samples
Turtle And Window Queries
SHOWNP
Pen Control
PENDOWN
PENUP
PENPAINT
PENERASE
PENREVERSE
PENNORMAL
SETPENCOLOR
SETFLOODCOLOR
SETSCREENCOLOR
SETPENSIZE
SETPENPATTERN
SETPEN
CLEARPALETTE
Pen Queries
PENDOWNP
PENMODE
PENCOLOR
FLOODCOLOR
SCREENCOLOR
PENSIZE
PENPATTERN
PEN

FMSLogo provides both traditional and extended Logo turtle graphics. Multiple turtles are supported but dynamic turtles and collision detection are not supported.

The center of the graphics surface (which may not be the center of the screen window, depending on how it is scrolled) is turtle location [0 0]. Positive X is to the right; positive Y is up. Headings (angles) are measured in degrees clockwise from the positive Y axis. (This differs from the common mathematical convention of measuring angles counterclockwise from the positive X axis.) The turtle is represented as an isosceles triangle; the actual turtle position is at the midpoint of the base (the long side).

FMSLogo begins with a white background and black pen.

FMSLogo supports color-by-index, color-by-name, and true color. See Using Color for details.


SourceForge.net Logo