Code: Select all
SCREEN 600,400
FrameLimit 40
tausta = MakeImage(600,400)
DrawToImage tausta
For i=1 To 100
Color 0,0,150+i
Box 0,i*3-3, 600, 3
Next i
Color 150,100,50
Box 0,300, 600, 100
Color 0, 100,0
For i=1 To 600
Box i,300-Rand(1,3),1,Rand(3,7)
Next i
DrawToScreen
Repeat
DrawImage tausta,0,0
height = MouseY()*-1+300
If height<45 Then height=45
If height>250 Then height=250
Color 0,0,0
Box 60,height,40,height
Text 0,0, height
Text 0,10, FPS()
DrawScreen
Forever