require "draw" function drawlevel(h) local p=pict.screen() p=pict.part(p,1,0,159,100) draw.clear() draw.pict(0,0,p) draw.line(159,0,159,h) end t=0 showgraph() while not(getkey()) do t=t+.1 drawlevel(10+10*math.sin(t)) end
nothing happen when you press a key (not EXE), but if you tap and then drag the stylus ...
because of draw.update() i think.