another banana mirage.
screen(800,600,0,"Mirage Effect")
setframetimer(80)
backcolor(80,80,250)
colourkey (0,0,0)
repeat
key=getkey()
cls()
alphachannel (128)
x = x - .5
m = x
for dx=0, imagewidth(kn)-1 do
r= imagered (dx,cx,kn)
g= imagegreen(dx,cx,kn)
b= imageblue (dx,cx,kn)
color(r,g,b)
if RGB(r,g,b) > 0 then
dot(250+dx+sin(m)*wAmp+1,200+cx)
end
end
end
alphachannel (255)
putimage (250,55,km)
sync()
until key== 27
Closewindow()