Casio Graphical Calculator Encyclopaedia

Token: Text
Type: IO function
Usage:
Text <row>, <col>, "<text>"

Definition:

Outputs "<text>" to the graphics screen, starting from row <row>, column <col>.

Other information:

The graphics screen is 127 pixels wide and 63 pixels high. An Arg error will occur if <row> and <col> are not within these bounds (1 <= <row> <= 63, 1 <= <col> <= 127). Only integer values of <row> and <col> are allowed. If the text starts on the screen but then overflows outside of these bounds when output, the excess will just not be printed and no error will occur. Only characters which will fit entirely on the screen are printed.

Each character is 5 pixels high and of variable width. According to the manual only a relatively small number of tokens can be output with this function, but this is actually not true. All tokens can be output, or at least all that I have tried.

In order to improve the speed of output on this function, Casio have used a little tweak. This function does not actually give any output until the next graphical function is called. If necessary, you should follow it with a "Plot" command to make the text appear.

This function plots to the screen relative to the pixels rather than the graph axes. On the standard range of "Range 1, 127, 0, 1, 63, 0" the top-left pixel of the text is at co-ordinates 64-Y, X. Note that the Text command and the axes-based commands such as Plot require their co-ordinates opposite ways round.


See also: Locate
Return to index
This page was created by Tom Lynn. Comments etc. to: thl22@cam.ac.uk.
This page last updated: Friday, 30 April, 1999

Written in notepad and compiled with WTA, for clean, consistent HTML.

Validate this page with WebTechs  - Validate this page with KGV  - Best Viewed With Any Browser