gc:drawString
Jump to navigation
Jump to search
drawString is a function that is part of gc (Graphics Context).
This function is used to display text, numbers etc. on the screen at specified coordinates.
This has been introduced in TI-Nspire OS 3.0 (Changes).
Syntax
gc:drawString(string, x, y [,position])
Parameter | Type | Description |
---|---|---|
string | The text to display | |
number | the x coordinate of the beginning of the string. Relative to position. | |
number | the y coordinate of the beginning of the string. Relative to position. | |
string | the string’s anchor point. It can either be "baseline", “bottom”, “middle”, or “top”. |
Example
gc:drawString("Hello World", 0, 0, "top")
will display Hello World at the top-left part of the screen.