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

Function get_color

outdated/win/gem/tile2img.c:123–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void
124get_color(unsigned int colind, struct RGB *rgb)
125{
126 rgb->r = (1000L * (long) ColorMap[CM_RED][colind]) / 0xFF;
127 rgb->g = (1000L * (long) ColorMap[CM_GREEN][colind]) / 0xFF;
128 rgb->b = (1000L * (long) ColorMap[CM_BLUE][colind]) / 0xFF;
129}
130
131void
132get_pixel(int x, int y, unsigned int *colind)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected