Difference between revisions of "Textutils.slowPrint"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
MKlegoman357 (Talk | contribs) (Updated/Improved) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=textutils.slowPrint | |name=textutils.slowPrint | ||
− | |args= | + | |args={{type|string}} text, {{type|number}} rate |
− | |returns= | + | |returns={{type|nil}} |
+ | |desc=Prints string <var>text</var> at current cursor position, character-by-character. Number argument <var>rate</var> is optional and is defaulted to 20. The higher the value of <var>rate</var>, the faster <var>text</var> is printed (passing a value of 1 prints one character per second). This function also prints a newline. | ||
|api=textutils | |api=textutils | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |||
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=Prints | + | |desc=Prints "Hello, World!" to the screen, character by character, 15 characters per second. |
− | |code=textutils.slowPrint("Hello, World!" | + | |code='''textutils.slowPrint("Hello, World!", 15)''' |
− | + | ||
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Latest revision as of 20:46, 16 February 2015
Function textutils.slowPrint | |
Prints string text at current cursor position, character-by-character. Number argument rate is optional and is defaulted to 20. The higher the value of rate, the faster text is printed (passing a value of 1 prints one character per second). This function also prints a newline. | |
Syntax | textutils.slowPrint(string text, number rate) |
Returns | nil |
Part of | ComputerCraft |
API | textutils |
Examples
Example | |
Prints "Hello, World!" to the screen, character by character, 15 characters per second. | |
Code |
textutils.slowPrint("Hello, World!", 15) |