home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 August
/
IMM0895.ISO01.iso
/
magazin
/
optix
/
disk1
/
optxppac.set
/
BGROUNDS.OPT
< prev
next >
Wrap
Text File
|
1995-03-21
|
845b
|
47 lines
def(i)
def(j,55)
def(k,12)
def(l,18)
def(m)
procedure bshade(xl,yo,xr,yu,d,c1,c2)
viewport(xl,yo+d,xl+d-1,yu-d)
cbox(9,c1,0)
viewport(xl,yo,xr,yo+d-1)
cbox(9,c1,0)
viewport(xr-d+1,yo+d,xr,yu-d)
cbox(9,c2,0)
viewport(xl,yu-d+1,xr,yu)
cbox(9,c2,0)
viewport(xl,yo,xr,yu)
plateau(c1,c2)
return
begin
clearscreen(0)
readpic('bgrounds.bmp')
setallpal
loadwin(0,43,0,0)
copywin(240,310,400,420)
for i:=0 to 7 do
loadwin(i*80,0,20,0)
loadwin(i*80,436,20,0)
next(i)
repeat
xor(m,1)
for i:=13 to 639 step 80 do
if m=0
bshade(i,k,i+j,k+l,6,234,0)
bshade(i,ymax-k-l,i+j,ymax-k,6,234,0)
else
bshade(i,k,i+j,k+l,6,0,234)
bshade(i,ymax-k-l,i+j,ymax-k,6,0,234)
endif
next(i)
wait(500)
until mousek<>keypressed
end