Difference between revisions of "gc:drawString"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
'''drawString ''' is a function that is part of [[:Category:gc|gc]] (Graphics Context). | '''drawString ''' is a function that is part of [[:Category:gc|gc]] (Graphics Context). | ||
− | |||
{{Since|3.0}} | {{Since|3.0}} | ||
− | |||
== Syntax == | == Syntax == | ||
gc:'''drawString'''(string, x, y [,position]) | gc:'''drawString'''(string, x, y [,position]) |
Revision as of 12:36, 24 May 2011
drawString is a function that is part of gc (Graphics Context). This has been introduced in TI-Nspire OS 3.0 (Changes).
Syntax
gc:drawString(string, x, y [,position])
Parameter | Type | Description |
---|---|---|
string | string | The text to display |
x | number | the x coordinate of the beginning of the string. Relative to position. |
y | number | the y coordinate of the beginning of the string. Relative to position. |
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.