
28
setpc
n
set pen color to N(N = 0,1). (0=white, 1=black).
setbg
n
set background color to N(N = 0, 1). (0=white,
1=black).
pencolor
(pc)
get current color N of pen(N=0,1). (0=white,
1=black).
background (bg)
get current background color N(N=0, 1). (0=white,
1=black).
penup
(pu)
put the turtle’s pen up. When the turtle moves, it
does not draw a line.
pendown
(pd)
put the turtle’s pen down and draws a line when
the turtle moves.(default status)
showturtle
(st)
make the turtle shape visible.(default status)
hideturtle
(ht)
make the turtle shape invisible.
home
move the turtle to the center of the screen, points
the turtle straight up (HEADING 0), but does not
clear the graphics screen or alter the pen state.
clearscreen
(cs)
erase the graphics screen, returns the turtle to the
center of the screen, and sets the turtle’s heading
to 0. CLEARSCREEN does not affect the pen state
or screen colors.
xcor
output the X coordinate of the turtle.
ycor
output the Y coordinate of the turtle.
heading
output the turtle’s degree.
turtlestate
(ts)
output 4 turtle properties:
pen down?
turtle visible?
background color
pen color
wrap
make the turtle remain inside the graphics
window no matter how large a movement
command is given. Any time the turtle moves off
the window borders, it wraps around the window
and reappears on the opposite edge.
window
remove the boundaries from the turtle’s field of
movement. If the turtle moves beyond the borders
of the graphics window, it continues to move, but
cannot be seen.
fence
prevent the turtle from moving beyond the edge
of the graphics window. If you try to move the
turtle off the window, it does not move and Logo
displays a message.
Summary of Contents for Power Zone Plus Desktop
Page 1: ......