Purpose
Opcode format | Opcode | Operand Format | Comments |
Extended ASCII | (ColorMap | <ws><ICount>[<ws><IRi>,<IGi>,<IBi>,<IAi>]+[<ws>]) | Defines a Color Map of RGBA colors |
Extended Binary | 0x0001 | <Bcount>[<BRi><BGi><BBi><BAi>]+} | Defines a Color Map of RGBA colors |
Ri, Gi, Bi, Ai The definition of the ith color (the red, green, blue, and alpha components) in the Color Map.
Note that the minimum allowed colormap size is one color (not zero).
Generally the Set Color Map opcode is used a maximum of one time in WHIP! data, and normally it is used before any Set Color opcodes.
Although it is legal to specify multiple color maps in a WHIP! data, this should be avoided. On many systems and with many WHIP! data reading applications, the color map is a limited global resource such that subsequent color map changes may affect previously drawn primitives.
On sufficiently advanced systems and with proper WHIP! data reading applications, changing the color map attribute should affect only drawing primitives that follow, not drawings that are performed prior to the color map change.
Palette Index | Newer
WHIP! data versions >/=0.38
(Default Color Value) |
0 | 0,0,0,255 |
1 | 128,0,0,255 |
2 | 0,128,0,255 |
3 | 128,128,0,255 |
4 | 0,0,128,255 |
5 | 128,0,128,255 |
6 | 0,128,128,255 |
7 | 192,192,192,255 |
8 | 192,220,192,255 |
9 | 166,202,240,255 |
10 | 0,0,0,255 |
11 | 0,0,51,255 |
12 | 0,0,102,255 |
13 | 0,0,153,255 |
14 | 0,0,204,255 |
15 | 0,0,255,255 |
16 | 0,51,0,255 |
17 | 0,51,51,255 |
18 | 0,51,102,255 |
19 | 0,51,153,255 |
20 | 0,51,204,255 |
21 | 0,51,255,255 |
22 | 0,102,0,255 |
23 | 0,102,51,255 |
24 | 0,102,102,255 |
25 | 0,102,153,255 |
26 | 0,102,204,255 |
27 | 0,102,255,255 |
28 | 0,153,0,255 |
29 | 0,153,51,255 |
30 | 0,153,102,255 |
31 | 0,153,153,255 |
32 | 0,153,204,255 |
33 | 0,153,255,255 |
34 | 0,204,0,255 |
35 | 0,204,51,255 |
36 | 0,204,102,255 |
37 | 0,204,153,255 |
38 | 0,204,204,255 |
39 | 0,204,255,255 |
40 | 0,255,0,255 |
41 | 0,255,51,255 |
42 | 0,255,102,255 |
43 | 0,255,153,255 |
44 | 0,255,204,255 |
45 | 0,255,255,255 |
46 | 51,0,0,255 |
47 | 51,0,51,255 |
48 | 51,0,102,255 |
49 | 51,0,153,255 |
50 | 51,0,204,255 |
51 | 51,0,255,255 |
52 | 51,51,0,255 |
53 | 51,51,51,255 |
54 | 51,51,102,255 |
55 | 51,51,153,255 |
56 | 51,51,204,255 |
57 | 51,51,255,255 |
58 | 51,102,0,255 |
59 | 51,102,51,255 |
60 | 51,102,102,255 |
61 | 51,102,153,255 |
62 | 51,102,204,255 |
63 | 51,102,255,255 |
64 | 51,153,0,255 |
65 | 51,153,51,255 |
66 | 51,153,102,255 |
67 | 51,153,153,255 |
68 | 51,153,204,255 |
69 | 51,153,255,255 |
70 | 51,204,0,255 |
71 | 51,204,51,255 |
72 | 51,204,102,255 |
73 | 51,204,153,255 |
74 | 51,204,204,255 |
75 | 51,204,255,255 |
76 | 51,255,0,255 |
77 | 51,255,51,255 |
78 | 51,255,102,255 |
79 | 51,255,153,255 |
80 | 51,255,204,255 |
81 | 51,255,255,255 |
82 | 102,0,0,255 |
83 | 102,0,51,255 |
84 | 102,0,102,255 |
85 | 102,0,153,255 |
86 | 102,0,204,255 |
87 | 102,0,255,255 |
88 | 102,51,0,255 |
89 | 102,51,51,255 |
90 | 102,51,102,255 |
91 | 102,51,153,255 |
92 | 102,51,204,255 |
93 | 102,51,255,255 |
94 | 102,102,0,255 |
95 | 102,102,51,255 |
96 | 102,102,102,255 |
97 | 102,102,153,255 |
98 | 102,102,204,255 |
99 | 102,102,255,255 |
100 | 102,153,0,255 |
101 | 102,153,51,255 |
102 | 102,153,102,255 |
103 | 102,153,153,255 |
104 | 102,153,204,255 |
105 | 102,153,255,255 |
106 | 102,204,0,255 |
107 | 102,204,51,255 |
108 | 102,204,102,255 |
109 | 102,204,153,255 |
110 | 102,204,204,255 |
111 | 102,204,255,255 |
112 | 102,255,0,255 |
113 | 102,255,51,255 |
114 | 102,255,102,255 |
115 | 102,255,153,255 |
116 | 102,255,204,255 |
117 | 102,255,255,255 |
118 | 153,0,0,255 |
119 | 153,0,51,255 |
120 | 153,0,102,255 |
121 | 153,0,153,255 |
122 | 153,0,204,255 |
123 | 153,0,255,255 |
124 | 153,51,0,255 |
125 | 153,51,51,255 |
126 | 153,51,102,255 |
127 | 153,51,153,255 |
128 | 153,51,204,255 |
129 | 153,51,255,255 |
130 | 153,102,0,255 |
131 | 153,102,51,255 |
132 | 153,102,102,255 |
133 | 153,102,153,255 |
134 | 153,102,204,255 |
135 | 153,102,255,255 |
136 | 153,153,0,255 |
137 | 153,153,51,255 |
138 | 153,153,102,255 |
139 | 153,153,153,255 |
140 | 153,153,204,255 |
141 | 153,153,255,255 |
142 | 153,204,0,255 |
143 | 153,204,51,255 |
144 | 153,204,102,255 |
145 | 153,204,153,255 |
146 | 153,204,204,255 |
147 | 153,204,255,255 |
148 | 153,255,0,255 |
149 | 153,255,51,255 |
150 | 153,255,102,255 |
151 | 153,255,153,255 |
152 | 153,255,204,255 |
153 | 153,255,255,255 |
154 | 204,0,0,255 |
155 | 204,0,51,255 |
156 | 204,0,102,255 |
157 | 204,0,153,255 |
158 | 204,0,204,255 |
159 | 204,0,255,255 |
160 | 204,51,0,255 |
161 | 204,51,51,255 |
162 | 204,51,102,255 |
163 | 204,51,153,255 |
164 | 204,51,204,255 |
165 | 204,51,255,255 |
166 | 204,102,0,255 |
167 | 204,102,51,255 |
168 | 204,102,102,255 |
169 | 204,102,153,255 |
170 | 204,102,204,255 |
171 | 204,102,255,255 |
172 | 204,153,0,255 |
173 | 204,153,51,255 |
174 | 204,153,102,255 |
175 | 204,153,153,255 |
176 | 204,153,204,255 |
177 | 204,153,255,255 |
178 | 204,204,0,255 |
179 | 204,204,51,255 |
180 | 204,204,102,255 |
181 | 204,204,153,255 |
182 | 204,204,204,255 |
183 | 204,204,255,255 |
184 | 204,255,0,255 |
185 | 204,255,51,255 |
186 | 204,255,102,255 |
187 | 204,255,153,255 |
188 | 204,255,204,255 |
189 | 204,255,255,255 |
190 | 255,0,0,255 |
191 | 255,0,51,255 |
192 | 255,0,102,255 |
193 | 255,0,153,255 |
194 | 255,0,204,255 |
195 | 255,0,255,255 |
196 | 255,51,0,255 |
197 | 255,51,51,255 |
198 | 255,51,102,255 |
199 | 255,51,153,255 |
200 | 255,51,204,255 |
201 | 255,51,255,255 |
202 | 255,102,0,255 |
203 | 255,102,51,255 |
204 | 255,102,102,255 |
205 | 255,102,153,255 |
206 | 255,102,204,255 |
207 | 255,102,255,255 |
208 | 255,153,0,255 |
209 | 255,153,51,255 |
210 | 255,153,102,255 |
211 | 255,153,153,255 |
212 | 255,153,204,255 |
213 | 255,153,255,255 |
214 | 255,204,0,255 |
215 | 255,204,51,255 |
216 | 255,204,102,255 |
217 | 255,204,153,255 |
218 | 255,204,204,255 |
219 | 255,204,255,255 |
220 | 255,255,0,255 |
221 | 255,255,51,255 |
222 | 255,255,102,255 |
223 | 255,255,153,255 |
224 | 255,255,204,255 |
225 | 255,255,255,255 |
226 | 0,0,0,255 |
227 | 13,13,13,255 |
228 | 26,26,26,255 |
229 | 40,40,40,255 |
230 | 53,53,53,255 |
231 | 67,67,67,255 |
232 | 80,80,80,255 |
233 | 93,93,93,255 |
234 | 107,107,107,255 |
235 | 120,120,120,255 |
236 | 134,134,134,255 |
237 | 147,147,147,255 |
238 | 161,161,161,255 |
239 | 174,174,174,255 |
240 | 187,187,187,255 |
241 | 201,201,201,255 |
242 | 214,214,214,255 |
243 | 228,228,228,255 |
244 | 241,241,241,255 |
245 | 255,255,255,255 |
246 | 255,251,240,255 |
247 | 160,160,164,255 |
248 | 128,128,128,255 |
249 | 255,0,0,255 |
250 | 0,255,0,255 |
251 | 255,255,0,255 |
252 | 0,0,255,255 |
253 | 255,0,255,255 |
254 | 0,255,255,255 |
255 | 255,255,255,255 |