-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCREENS.PAS
134 lines (102 loc) · 1.99 KB
/
SCREENS.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Type
color_pall = array [0..15] of short_integer;
Var
pall, system_pal, pic_pal, preset_1, preset_2, preset_3,
preset_4: color_pall;
Procedure Set_Pallet;
Begin
pall[0]:=0;
pall[1]:=2;
pall[2]:=3;
pall[3]:=6;
pall[4]:=4;
pall[5]:=7;
pall[6]:=5;
pall[7]:=8;
pall[8]:=9;
pall[9]:=10;
pall[10]:=11;
pall[11]:=14;
pall[12]:=12;
pall[13]:=15;
pall[14]:=13;
pall[15]:=1;
End;
Procedure Set_Colors;
Var
j: integer;
Begin
j:=setcolor(0,$000);
j:=setcolor(15,$777);
End;
Procedure Set_Pallets;
Var
j: integer;
Begin
j:=setcolor(0,$000);
j:=setcolor(1,$001);
j:=setcolor(2,$002);
j:=setcolor(3,$003);
j:=setcolor(4,$004);
j:=setcolor(5,$005);
j:=setcolor(6,$006);
j:=setcolor(7,$007);
j:=setcolor(8,$007);
j:=setcolor(9,$117);
j:=setcolor(10,$227);
j:=setcolor(11,$337);
j:=setcolor(12,$447);
j:=setcolor(13,$557);
j:=setcolor(14,$667);
j:=setcolor(15,$777);
End;
Procedure Get_System_Pallet;
Var
i: integer;
Begin
For i:=0 to 15 do
system_pal[i]:=setcolor (pall[i],-1);
End;
Procedure Use_System_Pallet;
Var
i, pop: integer;
Begin
For i:=0 to 15 do
pop:=setcolor (pall[i],system_pal[i]);
End;
Procedure Set_Usage_Pallet;
Var
i: integer;
Begin
For i:=0 to 15 do
pic_pal[i]:=setcolor (pall[i],-1);
End;
Procedure Use_Usage_Pallet;
Var
i, pop: integer;
Begin
For i:=0 to 15 do
pop:=setcolor (pall[i],pic_pal[i]);
End;
{Procedure Set_Levels_1;
Var
k,i,constant: integer;
Begin
constant:=trunc((chunkrec1.max-chunkrec1.min)/16);
k:=0;
For i:=0 to 16 do Begin
ChunkRec1.Levels [i]:=k+chunkrec1.min;
k:=k+constant;
End;
End;
Procedure Set_Levels_2;
Var
k,i,constant: integer;
Begin
constant:=trunc((chunkrec2.max-chunkrec2.min)/16);
k:=0;
For i:=0 to 16 do Begin
ChunkRec2.Levels [i]:=k+chunkrec2.min;
k:=k+constant;
End;
End;}