Setx; Sety; St; Tf - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

*
setx
Moves the turtle's horizontal position to the x co-ordinate specified by the input
number (see also set
y).
?setx 80
?fd 100
?setx -50
?fd 50
*
sety
Moves the turtle's vertical position to the y co-ordinate specified by the input number
(see also set x).
?sety 90
?fd 20
?sety -50
?fd 50
st
(show turtle) Makes the turtle visible ifhidden.
tf
?ht
?fd 50
?st
(turtle facts) Outputs information about the turtle. The format is: [<xcor> <ycor>
<heading> <penstate> <pencolour n> < shownp
> ]
where <xcor> is the turtle's x co-ordinate.
<ycor> is, the turtle's y co-ordinate. <heading> indicates the compass direction the
turtle is facing. <shownp> is T RUE ifthe turtle is visible. <penstate> indicates P D (pen
down), PE (pen erase), P X (pen exchange) or P U (pen up). <pencolour n> identifies the
pen's number.
?setpos [15 30]
?rt 60
?setpc
3
?pe
?ht
?tf
[15 30 60 PE 3 FALSE]
Introduction to Logo
Chapter 6 Page 29

Advertisement

Table of Contents
loading

Table of Contents