Anda di halaman 1dari 1

LOGO Commands (for FMSLogo)

FORWARD (FD) any number


BACK (BK) any number
RIGHT (RT) any number
LEFT (LT) any number

PENUP (PU) http://el.media.mit.edu/Logo-foundation/logo/


PENDOWN (PD)

HOME turtle moves to the centre of the screen; leaves drawings


CLEARSCREEN (CS) clears drawings; moves turtle to the centre of the screen
CLEAN leaves turtle where it is; clears drawings

SHOWTURTLE (ST) HIDETURTLE (HT)

WRAP if the turtle moves past the boundary of the graphics window it will
reappear at the opposite edge
FENCE the turtle cannot move past the boundary of the graphics window;
it will stop at the edge with an "out of bounds" error message.
WINDOW the graphics window is just a part of a limitless graphics plane;
turtle just keeps on going!
SETPENCOLOUR (SETPC) use with a colour number from 0 to 15 e.g. SETPC 6
SETSCREENCOLOUR (SETSC) as for SETPC but changes the screen colour
SETPENSIZE use with a number to change pen width.
Colours can also be set using a list of [red green blue] intensities.
E.g. SETFC [255 0 0] is RED; SETSC [0 255 0] is GREEN, SETPC [255 255 255] is
WHITE etc.
FILL Fills in a region of the graphics window such as a shape. Move the
Turtle inside the shape and type FILL. The fill colour is set by
SETFLOODCOLOUR:

SETFLOODCOLOUR (SETFC) as for SETPC but changes the fill colour


These elements can also be changed using the SET MENU.

There are other PEN commands that might be useful:


PENERASE sets the pen to draw in the screen colour, i.e. the background
colour. Good for ‘undrawing’ a line.
PENPAINT cancels PENERASE and sets the pen to draw a line again.
You can also make the Turtle go slower: Try SLOWDRAW 100.
SLOWDRAW 0 resets the Turtle’s speed to normal

Get your own copy of FMSLogo here:


http://sourceforge.net/projects/fmslogo

Anda mungkin juga menyukai