home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 August
/
IMM0895.ISO01.iso
/
magazin
/
optix
/
disk1
/
optxppac.set
/
COLORS.OPT
< prev
next >
Wrap
Text File
|
1995-06-08
|
5KB
|
342 lines
DEF(I)
DEF(J)
DEF(NR)
DEF(SCOL,21)
DEF(R)
DEF(G)
DEF(B)
DEF(COL)
DEF(RS)
DEF(GS)
DEF(BS)
DEF(RE)
DEF(GE)
DEF(BE)
DEF(GIN,1)
DEF(RND,3)
DEF(BR)
DEF(H)
DEFAW(VOL,3)
DEFAW(XX, 3)
DEFAW(YY, 3)
DEFAW(BY, 3)
DEF(CX)
DEF(CY)
DEF(DX)
DEF(DY)
DEFS(HS)
PROCEDURE BUTT(X0,Y0,X1,Y1)
CBOX(0,7,0)
VIEWPORT(X0, Y0, X1, Y1)
CBOX(0,28,0)
PLATEAU(255,248)
DECVIEWPORT
PLATEAU(255,248)
RETURN
PROCEDURE SLBUTTON(YB,NR)
LOCALS(X0,Y0,BY,MC)
X0 := _XX[NR]
Y0 := _YY[NR]
BY := _BY[NR]
MC := MCURS
IF YB > Y0 + RND - 1
IF YB < Y0 + H - BR + RND
VIEWPORT(X0+RND, BY, X0+BR-RND-1, BY+BR-RND-3)
SETBCOLOR(248)
SETCOLOR(255)
IF MC = 1
CURSOFF
ENDIF
BUTT(X0+RND, YB, X0+BR-RND-1, YB+BR-RND-3)
IF MC = 1
CURSON(MOUSEX, MOUSEY)
ENDIF
VOL[NR] := (YB-Y0-RND)*100/(H-2*RND-BR+3)
_BY[NR] := YB
ENDIF
ENDIF
RETURN
PROCEDURE FADER(X0, Y0, B, H, NR)
LOCALS(I,BY)
VIEWPORT(X0, Y0, X0+B-1, Y0+H-1)
CBOX(0,7,0)
PLATEAU(248,255)
DECVIEWPORT
DECVIEWPORT
PLATEAU(248,255)
_BR := B
_H := H
VOL[NR] := 0
XX[NR] := X0
YY[NR] := Y0
BY[NR] := Y0+RND
SLBUTTON(Y0+RND,NR)
RETURN
PROCEDURE SETGRADAT
IF GIN = 1
RS := R
GS := G
BS := B
GRADATION(32, 95, RS, GS, BS, RE, GE, BE)
PRINTAT(25,390,'ROT : '+STR(RS,2))
PRINTAT(25,405,'GRÜN: '+STR(GS,2))
PRINTAT(25,420,'BLAU: '+STR(BS,2))
ENDIF
IF GIN = 2
RE := R
GE := G
BE := B
GRADATION(32, 95, RS, GS, BS, RE, GE, BE)
PRINTAT(550,390,'ROT : '+STR(RE,2))
PRINTAT(550,405,'GRÜN: '+STR(GE,2))
PRINTAT(550,420,'BLAU: '+STR(BE,2))
ENDIF
RETURN
BEGIN
SETCOLOR(255)
SYSFONT(2,0)
NEW(XX)
NEW(YY)
NEW(BY)
NEW(VOL)
SETPVGA
SETALLPAL
SETPSTD
SETSUBPAL(15)
CLEARSCREEN(SCOL)
SETRGBCOLOR(0,0,0,230)
SETRGBCOLOR(0,0,0,231)
SETRGBCOLOR(0,0,0,232)
SETRGBCOLOR(0,0,0,233)
SETRGBCOLOR(0,63,63,234)
SETRGBCOLOR(63,0,63,235)
SETRGBCOLOR(63,63,0,236)
SETBCOLOR(SCOL)
PRINTC(320,20,'O P T I X - D R U C K F A R B E N - M I X T O O L')
PRINTAT(101,80,'ROT')
PRINTAT(143,80,'GRUEN')
PRINTAT(197,80,'BLAU')
PRINTC(402,160,'----------ADDITIV---------')
PRINTAT(298,200,'Druckmix > <')
PRINTC(405,250,'--------SUBTRAKTIV--------')
SETCOLOR(255)
COL := 230
FOR I := 300 TO 460 STEP 80 DO
VIEWPORT(I,100,I+50,150)
CBOX(0,COL,0)
RECTANGLE
VIEWPORT(I,260,I+50,310)
CBOX(0,COL+4,0)
RECTANGLE
INC(COL,1)
NEXT(I)
VIEWPORT(380,180,430,230)
CBOX(0,233,0)
RECTANGLE
FADER(100,100,25,250,1)
FADER(150,100,25,250,2)
FADER(200,100,25,250,3)
VIEWPORT(0,0,0,0)
BUTT(100,400,120,420)
VIEWPORT(0,0,0,0)
BUTT(520,400,540,420)
J := 32
FOR I := 129 TO 511 STEP 6 DO
VIEWPORT(I, 380, I+5, 440)
CBOX(0,J,0)
INC(J,1)
NEXT(I)
VIEWPORT(128,380,512,440)
RECTANGLE
SCRTOBUF
CURSON(MOUSEX,MOUSEY)
R := 0
G := 0
B := 0
:HL
SELBOX(XX[1]+RND, BY[1], XX[1]+BR-RND-1, BY[1]+BR-RND-3, I)
IF I = 1
CY := MOUSEY
DY := CY - BY[1]
:MV1
IF CY <> MOUSEY
CY := MOUSEY
SLBUTTON(CY-DY,1)
R := VOL[1]*63/100
STR(R,2,HS)
SETBCOLOR(SCOL)
PRINTAT(105,355,HS)
SETRGBCOLOR(R,0,0,230)
SETRGBCOLOR(R,G,B,233)
SETRGBCOLOR(0,63-R,63-R,234)
SETGRADAT
ENDIF
IF MOUSEK <> 0
GOTO('MV1')
ENDIF
ENDIF
SELBOX(XX[2]+RND, BY[2], XX[2]+BR-RND-1, BY[2]+BR-RND-3, I)
IF I = 1
CY := MOUSEY
DY := CY - BY[2]
:MV2
IF CY <> MOUSEY
CY := MOUSEY
SLBUTTON(CY-DY,2)
G := VOL[2]*63/100
STR(G,2,HS)
SETBCOLOR(SCOL)
PRINTAT(155,355,HS)
SETRGBCOLOR(0,G,0,231)
SETRGBCOLOR(R,G,B,233)
SETRGBCOLOR(63-G,0,63-G,235)
SETGRADAT
ENDIF
IF MOUSEK <> 0
GOTO('MV2')
ENDIF
ENDIF
SELBOX(XX[3]+RND, BY[3], XX[3]+BR-RND-1, BY[3]+BR-RND-3, I)
IF I = 1
CY := MOUSEY
DY := CY - BY[3]
:MV3
IF CY <> MOUSEY
CY := MOUSEY
SLBUTTON(CY-DY,3)
B := VOL[3]*63/100
STR(B,2,HS)
SETBCOLOR(SCOL)
PRINTAT(205,355,HS)
SETRGBCOLOR(0,0,B,232)
SETRGBCOLOR(R,G,B,233)
SETRGBCOLOR(63-B,63-B,0,236)
SETGRADAT
ENDIF
IF MOUSEK <> 0
GOTO('MV3')
ENDIF
ENDIF
SELBOX(100,400,120,420,I)
IF I = 1
GIN:=1
ENDIF
SELBOX(520,400,540,420,I)
IF I = 1
GIN:=2
ENDIF
IF MOUSEK = 4
GOTO('EE')
ENDIF
GOTO('HL')
:EE
DISPOSE(VOL)
DISPOSE(XX)
DISPOSE(YY)
DISPOSE(BY)
END