How bout this. Sort of changing seasons
set display mode 640,480,32
sync on : sync rate 0
for i = 1 to 32000
dot rnd(255),rnd(255)
next i
Ink rgb(0, 0, 0), 0 : Box 64, 64, 192, 192
get image 1,0,0,255,255,1
Ink rgb(255, 255, 255), 0
For i = 1 To 25
Sprite i, 0, 0, 1
Size Sprite i , 640, 480
Hide Sprite i
set sprite alpha i,i*2
next i
Length = 19
DrawFactor as float = 0.6
color backdrop 0
Do
t = timer()
a# = math_wrapFloat(a#, 1)
c# = math_wrapPingPong(c#, 32, 255, a#)
If c => 255 Then i = -1
If c =< 0 Then i = 1
For i = 1 To 25
Paste Sprite i, DrawFactor*i*sin(t*0.1), Length*0.8 + DrawFactor*(-i + 0.3*i*sin(t*0.17+22))
Set Sprite Diffuse i, c#, 192, 0
next i
Set Cursor 0, 0
print "FPS: ", screen fps()
sync
loop
end
Function math_wrapFloat(n As Float, spd As Float)
n = n + spd
If n => 360.0 Then n = 0.0
endFunction n
Function math_wrapPingPong(n As Float, rng1 As Float, rng2 As Float, ang As Float)
Local i As Float
i = (rng2 - rng1) / 2.0
n = rng1 + i + (Cos(ang) * i)
endFunction n
There is always one more imbecile than you counted on.