Download Print this page

Casio CLASSWIZ CG Software User's Manual page 133

Graphics calculator

Advertisement

 
Syntax: setposition( x , y )
•  The x , y arguments are the same as those for goto.
 
setx()
Moves the turtle to the specified x -coordinate without changing its current y -coordinate. The head orientation
does not change.
 
Syntax: setx( x )
•  x argument: Specifies x -coordinate of the turtle's destination.
-  x type: int or float
 
sety()
Moves the turtle to the specified y -coordinate without changing its current x -coordinate. The head orientation
does not change.
 
Syntax: sety( y )
•  y argument: Specifies y -coordinate of the turtle's destination.
-  y type: int or float
 
home()
Moves the turtle to the origin (0,0) and returns the head to its initial orientation (rightward).
 
Syntax: home()       (no argument)
Drawing Circles and Text
circle()
Draws a circle or an arc from the current turtle location. The circle
or arc is drawn counterclockwise starting from the current turtle
location. The figure on the right shows the relationship between
the arguments in the following syntax and the arc being drawn,
assuming that the current position of the turtle is ( x
 
Syntax: circle(radius[,extent=360])
•  radius argument: Specifies a circle radius.
-  Type: int or float
•  extent argument: Specifies an arc angle in degrees.
-  Type: int or float
-  How to specify: For example, to set the extent to 180, use circle(radius,extent=180) or circle(radius,180).
-  Initial default: 360 (360 when omitted)
 
write()
Draws a text string from the current turtle location.
 
Syntax: write(text)
•  text argument: Specifies a text string.
-  There are no restrictions on the text argument's type. Any text string can be entered by enclosing it within
double quotes (" ").
, y
).
1
1
133
extent
radius
( x
, y
)
1
1

Advertisement

loading
Need help?

Need help?

Do you have a question about the CLASSWIZ CG and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fx-cg100Fx-1au graph