MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / colorForIdx

Method colorForIdx

Source/GameToolbox/conv.cpp:250–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250Color3B GameToolbox::colorForIdx(int col)
251{
252 switch (col)
253 {
254 case 0:
255 return {125, 255, 0};
256 case 1:
257 return {0, 255, 0};
258 case 2:
259 return {0, 255, 125};
260 case 3:
261 return {0, 255, 255};
262 case 4:
263 return {0, 125, 255};
264 case 5:
265 return {0, 0, 255};
266 case 6:
267 return {125, 0, 255};
268 case 7:
269 return {255, 0, 255};
270 case 8:
271 return {255, 0, 125};
272 case 9:
273 return {255, 0, 0};
274 case 10:
275 return {255, 125, 0};
276 case 11:
277 return {255, 255, 0};
278 case 12:
279 return {255, 255, 255};
280 case 13:
281 return {185, 0, 255};
282 case 14:
283 return {255, 185, 0};
284 case 15:
285 return {0, 0, 0};
286 case 16:
287 return {0, 200, 255};
288 case 17:
289 return {175, 175, 175};
290 case 18:
291 return {90, 90, 90};
292 case 19:
293 return {255, 125, 125};
294 case 20:
295 return {0, 175, 75};
296 case 21:
297 return {0, 125, 125};
298 case 22:
299 return {0, 75, 175};
300 case 23:
301 return {75, 0, 175};
302 case 24:
303 return {125, 0, 125};
304 case 25:
305 return {175, 0, 75};
306 case 26:
307 return {175, 75, 0};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected