Difference between revisions of "Textutils.slowWrite"
From ComputerCraft Wiki
Zalerinian (Talk | contribs) (Made the page) |
MKlegoman357 (Talk | contribs) m (Updated/Improved) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=textutils.slowWrite | |name=textutils.slowWrite | ||
− | |args= | + | |args={{type|string}} text, {{type|number}} rate |
− | |returns= | + | |returns={{type|nil}} |
+ | |desc=Writes 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 written (passing a value of 1 writes one character per second). | ||
|api=textutils | |api=textutils | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |||
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=Writes | + | |desc=Writes "Hello World!" to the screen, 15 characters per second. |
− | |code=textutils.slowWrite("Hello World!" | + | |code='''textutils.slowWrite("Hello, World!", 15)''' |
− | + | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:API_Functions]] |
Latest revision as of 20:44, 16 February 2015
Function textutils.slowWrite | |
Writes 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 written (passing a value of 1 writes one character per second). | |
Syntax | textutils.slowWrite(string text, number rate) |
Returns | nil |
Part of | ComputerCraft |
API | textutils |
Examples
Example | |
Writes "Hello World!" to the screen, 15 characters per second. | |
Code |
textutils.slowWrite("Hello, World!", 15) |