File: init_colors.c

package info (click to toggle)
garlic 1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,516 kB
  • sloc: ansic: 52,465; makefile: 2,254
file content (446 lines) | stat: -rw-r--r-- 20,669 bytes parent folder | download | duplicates (5)
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
/* Copyright (C) 2000-2003 Damir Zucic */

/*=============================================================================

			    init_colors.c

Purpose:
	Initialize the predefined (hard-coded) color schemes.

Input:
	(1) Pointer to ColorSchemeS structure.
	(2) Pointer to GUIS structure.

Output:
	(1) Predefined color schemes initialized.
	(2) Return value.

Return value:
	(1) Positive always (trivial).

=============================================================================*/

#include <stdio.h>

#include <string.h>

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>

#include "defines.h"
#include "typedefs.h"

/*======function prototypes:=================================================*/

int		ParseColor_ (RGBS *, unsigned long *, GUIS *, char *, char *);

/*======predefined color schemes:============================================*/

int InitializeColors_ (ColorSchemeS *color_schemeSP, GUIS *guiSP)
{
size_t			rgb_struct_size;
RGBS			rgbS;
unsigned long		dummyID;

/* The size of RGBS structure: */
rgb_struct_size = sizeof (RGBS);

/*------RED (0):-------------------------------------------------------------*/

(color_schemeSP + 0)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/8888/8888", "white");
memcpy ((color_schemeSP + 0)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/0000/0000", "white");
memcpy ((color_schemeSP + 0)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/0000/0000", "white");
memcpy ((color_schemeSP + 0)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:6666/0000/0000", "white");
memcpy ((color_schemeSP + 0)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:4444/0000/0000", "white");
memcpy ((color_schemeSP + 0)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/0000/0000", "white");
memcpy ((color_schemeSP + 0)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------GREEN (1):-----------------------------------------------------------*/

(color_schemeSP + 1)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/FFFF/8888", "white");
memcpy ((color_schemeSP + 1)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/FFFF/0000", "white");
memcpy ((color_schemeSP + 1)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/8888/0000", "white");
memcpy ((color_schemeSP + 1)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/6666/0000", "white");
memcpy ((color_schemeSP + 1)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/4444/0000", "white");
memcpy ((color_schemeSP + 1)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/2222/0000", "white");
memcpy ((color_schemeSP + 1)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------BLUE (2):------------------------------------------------------------*/

(color_schemeSP + 2)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/8888/FFFF", "white");
memcpy ((color_schemeSP + 2)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/FFFF", "white");
memcpy ((color_schemeSP + 2)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/8888", "white");
memcpy ((color_schemeSP + 2)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/6666", "white");
memcpy ((color_schemeSP + 2)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/4444", "white");
memcpy ((color_schemeSP + 2)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/2222", "white");
memcpy ((color_schemeSP + 2)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------YELLOW (3):----------------------------------------------------------*/

(color_schemeSP + 3)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/FFFF/8888", "white");
memcpy ((color_schemeSP + 3)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/FFFF/0000", "white");
memcpy ((color_schemeSP + 3)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/8888/0000", "white");
memcpy ((color_schemeSP + 3)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:3333/3333/0000", "white");
memcpy ((color_schemeSP + 3)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/2222/0000", "white");
memcpy ((color_schemeSP + 3)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:1111/1111/0000", "white");
memcpy ((color_schemeSP + 3)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------CYAN (4):------------------------------------------------------------*/

(color_schemeSP + 4)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:DDDD/FFFF/FFFF", "white");
memcpy ((color_schemeSP + 4)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/FFFF/FFFF", "white");
memcpy ((color_schemeSP + 4)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/8888/8888", "white");
memcpy ((color_schemeSP + 4)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/3333/3333", "white");
memcpy ((color_schemeSP + 4)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/2222/2222", "white");
memcpy ((color_schemeSP + 4)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/1111/1111", "white");
memcpy ((color_schemeSP + 4)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------MAGENTA (5):---------------------------------------------------------*/

(color_schemeSP + 5)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/9999/FFFF", "white");
memcpy ((color_schemeSP + 5)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:EEEE/4444/EEEE", "white");
memcpy ((color_schemeSP + 5)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/0000/8888", "white");
memcpy ((color_schemeSP + 5)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:3333/0000/3333", "white");
memcpy ((color_schemeSP + 5)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/0000/2222", "white");
memcpy ((color_schemeSP + 5)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:1111/0000/1111", "white");
memcpy ((color_schemeSP + 5)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------WHITE (6):-----------------------------------------------------------*/

(color_schemeSP + 6)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:DDDD/DDDD/DDDD", "white");
memcpy ((color_schemeSP + 6)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:AAAA/AAAA/AAAA", "white");
memcpy ((color_schemeSP + 6)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:5555/5555/5555", "white");
memcpy ((color_schemeSP + 6)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:3333/3333/3333", "white");
memcpy ((color_schemeSP + 6)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/2222/2222", "white");
memcpy ((color_schemeSP + 6)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:1111/1111/1111", "white");
memcpy ((color_schemeSP + 6)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------YELLOW-GREEN (7):----------------------------------------------------*/

(color_schemeSP + 7)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:DDDD/FFFF/8888", "white");
memcpy ((color_schemeSP + 7)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/FFFF/0000", "white");
memcpy ((color_schemeSP + 7)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:4444/8888/0000", "white");
memcpy ((color_schemeSP + 7)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/4444/0000", "white");
memcpy ((color_schemeSP + 7)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/3333/0000", "white");
memcpy ((color_schemeSP + 7)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:1111/2222/0000", "white");
memcpy ((color_schemeSP + 7)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*-------CYAN-GREEN (8):-----------------------------------------------------*/

(color_schemeSP + 8)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/FFFF/DDDD", "white");
memcpy ((color_schemeSP + 8)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/FFFF/8888", "white");
memcpy ((color_schemeSP + 8)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/8888/4444", "white");
memcpy ((color_schemeSP + 8)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/4444/2222", "white");
memcpy ((color_schemeSP + 8)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/3333/2222", "white");
memcpy ((color_schemeSP + 8)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/2222/1111", "white");
memcpy ((color_schemeSP + 8)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*-------CYAN-BLUE (9):-----------------------------------------------------*/

(color_schemeSP + 9)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/DDDD/FFFF", "white");
memcpy ((color_schemeSP + 9)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/8888/FFFF", "white");
memcpy ((color_schemeSP + 9)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/4444/8888", "white");
memcpy ((color_schemeSP + 9)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/2222/4444", "white");
memcpy ((color_schemeSP + 9)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/2222/3333", "white");
memcpy ((color_schemeSP + 9)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/1111/2222", "white");
memcpy ((color_schemeSP + 9)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*-------MAGENTA-BLUE (10):--------------------------------------------------*/

(color_schemeSP + 10)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:DDDD/8888/FFFF", "white");
memcpy ((color_schemeSP + 10)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/0000/FFFF", "white");
memcpy ((color_schemeSP + 10)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:4444/0000/8888", "white");
memcpy ((color_schemeSP + 10)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/0000/4444", "white");
memcpy ((color_schemeSP + 10)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/0000/3333", "white");
memcpy ((color_schemeSP + 10)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:1111/0000/2222", "white");
memcpy ((color_schemeSP + 10)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*-------MAGENTA-RED (11):---------------------------------------------------*/

(color_schemeSP + 11)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/8888/DDDD", "white");
memcpy ((color_schemeSP + 11)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/0000/8888", "white");
memcpy ((color_schemeSP + 11)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/0000/4444", "white");
memcpy ((color_schemeSP + 11)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:4444/0000/2222", "white");
memcpy ((color_schemeSP + 11)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:3333/0000/2222", "white");
memcpy ((color_schemeSP + 11)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/0000/1111", "white");
memcpy ((color_schemeSP + 11)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------ORANGE (12):---------------------------------------------------------*/

(color_schemeSP + 12)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/9999/7777", "white");
memcpy ((color_schemeSP + 12)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/8888/0000", "white");
memcpy ((color_schemeSP + 12)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/4444/0000", "white");
memcpy ((color_schemeSP + 12)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:6666/3333/0000", "white");
memcpy ((color_schemeSP + 12)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:4444/2222/0000", "white");
memcpy ((color_schemeSP + 12)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/1111/0000", "white");
memcpy ((color_schemeSP + 12)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------HOT (13):------------------------------------------------------------*/

(color_schemeSP + 13)->surfacesN = 3;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/FFFF/4444", "white");
memcpy ((color_schemeSP + 13)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/DDDD/0000", "white");
memcpy ((color_schemeSP + 13)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/5555/0000", "white");
memcpy ((color_schemeSP + 13)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/8888/0000", "white");
memcpy ((color_schemeSP + 13)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/0000/0000", "white");
memcpy ((color_schemeSP + 13)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/0000/0000", "white");
memcpy ((color_schemeSP + 13)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/* Surface 2: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/0000/0000", "white");
memcpy ((color_schemeSP + 13)->left_rgbSA   + 2, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:4444/0000/0000", "white");
memcpy ((color_schemeSP + 13)->middle_rgbSA + 2, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/0000/0000", "white");
memcpy ((color_schemeSP + 13)->right_rgbSA  + 2, &rgbS, rgb_struct_size);

/*------COLD (14):-----------------------------------------------------------*/

(color_schemeSP + 14)->surfacesN = 3;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:DDDD/FFFF/FFFF", "white");
memcpy ((color_schemeSP + 14)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/FFFF/FFFF", "white");
memcpy ((color_schemeSP + 14)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/8888/FFFF", "white");
memcpy ((color_schemeSP + 14)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/8888/FFFF", "white");
memcpy ((color_schemeSP + 14)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/FFFF", "white");
memcpy ((color_schemeSP + 14)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/8888", "white");
memcpy ((color_schemeSP + 14)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/* Surface 2: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/8888", "white");
memcpy ((color_schemeSP + 14)->left_rgbSA   + 2, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/4444", "white");
memcpy ((color_schemeSP + 14)->middle_rgbSA + 2, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/2222", "white");
memcpy ((color_schemeSP + 14)->right_rgbSA  + 2, &rgbS, rgb_struct_size);

/*------MONOCHROME (15):-----------------------------------------------------*/

(color_schemeSP + 15)->surfacesN = 1;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/0000", "white");
memcpy ((color_schemeSP + 15)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/FFFF/FFFF", "white");
memcpy ((color_schemeSP + 15)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:0000/0000/0000", "white");
memcpy ((color_schemeSP + 15)->right_rgbSA, &rgbS, rgb_struct_size);

/*------ORANGE-YELLOW (21):--------------------------------------------------*/

(color_schemeSP + 21)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/DDDD/7777", "white");
memcpy ((color_schemeSP + 21)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/AAAA/0000", "white");
memcpy ((color_schemeSP + 21)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/6666/0000", "white");
memcpy ((color_schemeSP + 21)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:5555/4444/0000", "white");
memcpy ((color_schemeSP + 21)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:3333/2222/0000", "white");
memcpy ((color_schemeSP + 21)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/1111/0000", "white");
memcpy ((color_schemeSP + 21)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------ORANGE-RED (22):-----------------------------------------------------*/

(color_schemeSP + 22)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/8888/6666", "white");
memcpy ((color_schemeSP + 22)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:FFFF/6666/0000", "white");
memcpy ((color_schemeSP + 22)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8888/2222/0000", "white");
memcpy ((color_schemeSP + 22)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:6666/2222/0000", "white");
memcpy ((color_schemeSP + 22)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:4444/1111/0000", "white");
memcpy ((color_schemeSP + 22)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2222/1111/0000", "white");
memcpy ((color_schemeSP + 22)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*------SKIN (23):-----------------------------------------------------------*/

(color_schemeSP + 23)->surfacesN = 2;

/* Surface 0: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:EDED/C5C5/9494", "white");
memcpy ((color_schemeSP + 23)->left_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:BCBC/8585/5C5C", "white");
memcpy ((color_schemeSP + 23)->middle_rgbSA, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8A8A/5757/3A3A", "white");
memcpy ((color_schemeSP + 23)->right_rgbSA, &rgbS, rgb_struct_size);

/* Surface 1: */
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:8585/5555/3535", "white");
memcpy ((color_schemeSP + 23)->left_rgbSA   + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:6565/4040/3030", "white");
memcpy ((color_schemeSP + 23)->middle_rgbSA + 1, &rgbS, rgb_struct_size);
ParseColor_ (&rgbS, &dummyID, guiSP, "RGB:2D2D/1F1F/1C1C", "white");
memcpy ((color_schemeSP + 23)->right_rgbSA  + 1, &rgbS, rgb_struct_size);

/*---------------------------------------------------------------------------*/

/* Return positive value on success: */
return 1;
}

/*===========================================================================*/