Hello,
Indeed some dll's too much, is SDL Punch and Judy show.
include "sdl.inc"
window 320,240,1
cls 0,0,0
sys cList[32]
m = loadmusic "music/xp.mod"
playmusic (m)
sub cycling(sys d,i,f,b)
if d=1
t=cList[i]
for e=i to f-1
cList[e] = cList[e+1]
next
if b=1 then cList[f]=t
else
t=cList[f]
for e=f to i+1 step -1
cList[e] = cList[e-1]
next
if b=1 then cList[i]=t
endif
end sub
for i=0 to 15
cList[i] = RGB(255,(i*16),0)
next
for i=0 to 15
cList[i+16] = RGB(255,240-(i*16),0)
next
while key(27)=0
cycling(0,0,31,1)
for y=0 to 480
v = mod(y,32)
c = cList[v]
r = getR(c)
g = getG(c)
b = getB(c)
color r,g,b,255
thickline -1 ,cos(y),320,y,1
thickline 320,cos(y), -1,y,1
next
redraw
wait 10
wend
winExit
.