MCPcopy Create free account
hub / github.com/NetHack/NetHack / get_color

Function get_color

outdated/win/gem/xpm2img.c:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 return 0;
86}
87void
88get_color(unsigned int colind, struct RGB *rgb)
89{
90 rgb->r = (1000L * (long) ColorMap[colind].r) / 0xFF;
91 rgb->g = (1000L * (long) ColorMap[colind].g) / 0xFF;
92 rgb->b = (1000L * (long) ColorMap[colind].b) / 0xFF;
93}
94void
95get_pixel(int x, int y, unsigned int *colind)
96{

Callers 1

bitmap_to_imgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected