Init
This commit is contained in:
40
usr.lib/libsunwindow/include/sunwindow/cms_rainbow.h
Normal file
40
usr.lib/libsunwindow/include/sunwindow/cms_rainbow.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/* @(#)cms_rainbow.h 1.1 94/10/31 SMI */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983 by Sun Microsystems, Inc.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Definition of the colormap segment CMS_RAINBOW,
|
||||
* a small collection of colors of the rainbow.
|
||||
*/
|
||||
|
||||
#define CMS_RAINBOW "rainbow"
|
||||
#define CMS_RAINBOWSIZE 8
|
||||
|
||||
#define WHITE 0
|
||||
#define RED 1
|
||||
#define ORANGE 2
|
||||
#define YELLOW 3
|
||||
#define GREEN 4
|
||||
#define BLUE 5
|
||||
#define INDIGO 6
|
||||
#define VIOLET 7
|
||||
|
||||
#define cms_rainbowsetup(r,g,b) \
|
||||
(r)[WHITE] = 255; (g)[WHITE] = 255; (b)[WHITE] = 255; \
|
||||
(r)[RED] = 255; (g)[RED] = 0; (b)[RED] = 0; \
|
||||
(r)[ORANGE] = 192; (g)[ORANGE] = 64; (b)[ORANGE] = 0; \
|
||||
(r)[YELLOW] = 128; (g)[YELLOW] = 128; (b)[YELLOW] = 0; \
|
||||
(r)[GREEN] = 0; (g)[GREEN] = 255; (b)[GREEN] = 0; \
|
||||
(r)[BLUE] = 0; (g)[BLUE] = 0; (b)[BLUE] = 255; \
|
||||
/* \
|
||||
* The rule for indigo is B > R & SQRT(B**2+R**2) < .5 \
|
||||
* where 0.0<=B|R<=1.0). Trying R=.25 and B=.3. \
|
||||
*/ \
|
||||
(r)[INDIGO] = 64; (g)[INDIGO] = 0; (b)[INDIGO] = 76; \
|
||||
/* \
|
||||
* The rule for violet is R > B & SQRT(B**2+R**2) > .5 \
|
||||
* where 0.0<=B|R<=1.0). Trying R=.5 and B=.7. \
|
||||
*/ \
|
||||
(r)[VIOLET] = 128; (g)[VIOLET] = 0; (b)[VIOLET] = 178;
|
||||
Reference in New Issue
Block a user