Changes

Jump to navigation Jump to search

gc:drawString

31 bytes added, 17:25, 27 October 2011
no edit summary
Line 25: Line 25:  
|}
 
|}
 
== Example  ==
 
== Example  ==
<syntaxhighlight>gc:drawString("Hello World", 0, 0, "top")</syntaxhighlight>
+
<syntaxhighlight>function on.paint(gc)
 +
    gc:drawString("Hello World", 0, 0, "top")
 +
end</syntaxhighlight>
 
will display&nbsp;&nbsp;&nbsp; Hello World &nbsp;&nbsp;&nbsp; at the top-left part of the screen.
 
will display&nbsp;&nbsp;&nbsp; Hello World &nbsp;&nbsp;&nbsp; at the top-left part of the screen.
    
<br /><br />
 
<br /><br />
 
[[Category:gc]]
 
[[Category:gc]]

Navigation menu