home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 July
/
IMM0795.ISO
/
demo
/
optix
/
optxfpac.set
/
RANDDRAW.OPT
< prev
next >
Wrap
Text File
|
1995-05-05
|
2KB
|
101 lines
def(flg)
def(c,1)
def(i)
def(j)
def(k)
def(taste)
def(r)
def(m,25)
def(x,160)
def(y,120)
procedure colors
gradation( 1, 36,63, 0, 0,63,63, 0)
gradation( 1, 36,63, 0, 0,63,63, 0)
gradation( 37, 72,63,63, 0, 0,63, 0)
gradation( 73,110, 0,63, 0,63,63,63)
gradation(111,147,63,63,63, 0, 0,63)
gradation(148,184, 0, 0,63,63, 0,63)
gradation(185,220,63, 0,63, 0, 0, 0)
gradation(221,255, 0, 0, 0,63, 0, 0)
return
begin
sysfont(2,1)
curson(x,y)
cursoff
m:=m/2*2
key(on)
keycol(0)
colors
printc(320,240,'Bitte Maustaste drücken...')
printc(320,270,'(dann Hilfe mit <F1>)')
repeat
rotpal(1,255)
until mousek<>0
clearscreen(0)
repeat
repeat
rotpal(1,255)
until keypressed<>mousek
taste:=readkey
if taste:=f1
scrtobuf
setcolor(0)
viewport(140,130,500,320)
cbox(0,55,0)
printc(320,170,'<Space> = Zufalls-Generator')
printc(320,210,'<+> <-> = Punktgröße + / -')
printc(320,240,'< k > = Kaleidoskop-Funktion')
printc(320,270,'< p > = Palettenwechsel')
printc(320,300,'<Maustaste> = Freihandzeichnung')
repeat
rotpal(1,255)
until keypressed<>mousek
loadpic(0,0)
endif
if taste:=107
copywin(0,0,xmax,ymax)
loadsprite( 0, 0,320,240,winx/2,winy/2)
loadsprite(320, 0, 0,240,winx/2,winy/2)
loadsprite( 0,240,320, 0,winx/2,winy/2)
loadsprite(320,240, 0, 0,winx/2,winy/2)
endif
if taste=112
if flg=1
flg:=0
colors
else
flg:=1
gradation(1,255,0,0,0,0,0,0)
gradation(1,15,0,0,0,63,0,32)
gradation(85,100,0,0,0,63,63,0)
gradation(170,185,0,63,0,0,0,63)
endif
endif
if taste:=43
inc(r,1)
endif
if taste:=45
dec(r,1)
endif
bound(r,1,20)
random(m,i)
inc(x,i-m/2)
bound(x,0,xmax-r/2)
random(m,j)
inc(y,j-m/2)
bound(y,0,ymax-r/2)
inc(c,1)
if c=256
c:=1
endif
if mousek=1
x:=mousex
y:=mousey
endif
disk(x,y,r,c)
disk(xmax-x,y,r,c)
disk(x,ymax-y,r,c)
disk(xmax-x,ymax-y,r,c)
until taste=27
end