Changes

Jump to navigation Jump to search

timer.start

182 bytes added, 18:36, 7 January 2012
no edit summary
Line 22: Line 22:     
== Example ==
 
== Example ==
<source>timer.start(0.5)</source>
+
<source>
 +
variable = 0
 +
 
 +
function on.timer()
 +
  timer.stop()
 +
  variable = variable + 1
 +
  platform.window:invalidate()
 +
end
 +
 
 +
function on.paint(gc)
 +
  timer.start(0.5)
 +
  gc:drawString(variable,0,0,"top")
 +
 
 +
end</source>
    
== See also ==
 
== See also ==

Navigation menu