Hi,
Sdl Example 18: Some Alpha Bars.
include "sdl.inc"
window 640,480,1
LoadFont 1,"sdlfonts/freemono.ttf",36
sys yr,yg=40,yb=80
sub RedCopper(sys y)
for i=64 to 255 step 10
color i,0,0,140
drawline 0,y,639,y
y = y+1
next
for i=255 to 64 step -10
color i,0,0,140
drawline 0,y,639,y
y = y+1
next
end sub
sub GreenCopper(sys y)
for i=64 to 255 step 10
color 0,i,0,140
drawline 0,y,639,y
y = y+1
next
for i=255 to 64 step -10
color 0,i,0,140
drawline 0,y,639,y
y = y+1
next
end sub
sub BlueCopper(sys y)
for i=64 to 255 step 10
color 0,i,i,140
drawline 0,y,639,y
y = y+1
next
for i=255 to 64 step -10
color 0,i,i,140
drawline 0,y,639,y
y = y+1
next
end sub
while key(27)=0
for i=0 to 240
color i+15,0,0,255
drawline 0,i,640,i
color 255-i,0,0,255
drawline 0,i+240,640,i+240
Next
color 255,255,255,255
textcolor 255,255,255
text "BARS",296,200,1
RedCopper yr
GreenCopper yg
BlueCopper yb
yr = yr+1
yg = yg-1
yb = yb+1
if yr >=480 then yr=-64
if yg <=-64 then yg=480
if yb >=480 then yb=-64
redraw
wait 5
wend
winExit
[attachment deleted by admin]