1 /***************************************************************************
2     palette.h  -  contains the possible palette of colors for HP PPA printers
3                              -------------------
4     begin                : Thu Jan 13 2000
5     copyright            : (C) 1999-2000 by the pnm2ppa project
6     email                :
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 /*
19  * this array conteins rgb coordinates for each color printable
20  * different component values are obtained shooting 0 to 4 ink drops
21  * over the same pixel.
22  *
23  * Giorgio Marzano <mochoman@tin.it>
24  *
25  */
26 
27 
28 /* unsigned char */ int hp_pal[5][5][5][3] = {
29     {
30 
31      {{25, 20, 20}, {69, 48, 49}, {83, 50, 49},
32       {107, 50, 47}, {246, 57, 50}},
33      {{60, 56, 54}, {67, 54, 50}, {82, 57, 50},
34       {109, 59, 50}, {254, 67, 53}},
35      {{59, 65, 56}, {65, 65, 53}, {80, 67, 52},
36       {109, 72, 52}, {254, 83, 56}},
37      {{57, 78, 58}, {64, 81, 55}, {77, 87, 55},
38       {109, 96, 56}, {255, 116, 60}},
39      {{56, 120, 62}, {62, 132, 60}, {76, 153, 61},
40       {106, 187, 63}, {255, 255, 71}}
41      },
42     {
43 
44      {{58, 47, 57}, {65, 44, 52}, {78, 45, 51},
45       {103, 47, 51}, {248, 53, 53}},
46      {{56, 53, 58}, {63, 51, 54}, {75, 51, 52},
47       {103, 55, 53}, {249, 62, 55}},
48      {{54, 61, 61}, {60, 60, 56}, {74, 62, 55},
49       {105, 68, 57}, {243, 80, 60}},
50      {{53, 62, 72}, {60, 77, 61}, {72, 81, 59},
51       {104, 91, 61}, {254, 114, 70}},
52      {{54, 117, 71}, {60, 129, 68}, {72, 148, 69},
53       {105, 185, 73}, {255, 255, 85}}
54      },
55     {
56 
57      {{56, 45, 63}, {61, 43, 58}, {74, 43, 56},
58       {99, 44, 56}, {240, 51, 58}},
59      {{53, 48, 64}, {60, 48, 61}, {73, 48, 59},
60       {101, 51, 60}, {245, 60, 63}},
61      {{52, 57, 68}, {57, 57, 65}, {72, 59, 64},
62       {102, 64, 65}, {251, 78, 71}},
63      {{51, 70, 73}, {57, 73, 71}, {70, 79, 71},
64       {103, 90, 74}, {254, 114, 82}},
65      {{51, 113, 84}, {59, 128, 85,}, {71, 146, 85},
66       {108, 186, 93}, {255, 255, 108}}
67      },
68     {
69 
70      {{54, 41, 69}, {59, 40, 67}, {70, 41, 66},
71       {99, 43, 66}, {239, 52, 71}},
72      {{52, 47, 77}, {59, 46, 75}, {72, 48, 74},
73       {100, 50, 75}, {243, 61, 79}},
74      {{51, 55, 85}, {56, 54, 83}, {69, 56, 81},
75       {102, 63, 84}, {249, 77, 90}},
76      {{50, 70, 96}, {57, 74, 97}, {68, 78, 96},
77       {102, 89, 99}, {254, 118, 111}},
78      {{51, 115, 117}, {59, 129, 119}, {73, 151, 124},
79       {108, 191, 133}, {255, 255, 154}}
80      },
81     {
82 
83      {{53, 40, 98}, {59, 40, 97}, {70, 40, 96},
84       {100, 45, 100}, {241, 55, 106}},
85      {{52, 45, 111}, {59, 45, 110}, {71, 47, 111},
86       {100, 53, 116}, {248, 66, 124}},
87      {{51, 52, 129}, {57, 54, 131}, {70, 56, 131},
88       {102, 66, 139}, {253, 89, 152}},
89      {{51, 68, 161}, {58, 72, 167}, {71, 79, 171},
90       {106, 93, 182}, {254, 131, 200}},
91      {{56, 122, 242}, {65, 138, 252}, {84, 163, 254},
92       {122, 204, 255}, {255, 255, 255}}
93      }
94 };
95