MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / SzColor

Function SzColor

general.cpp:2228–2240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2226// name or a general RGB value.
2227
2228char *SzColor(KI ki)
2229{
2230 static char szCol[8];
2231
2232 if (ki >= 0)
2233 sprintf(szCol, "%s", szColor[ki]);
2234 else {
2235 // Compose RGB color value.
2236 neg(ki);
2237 sprintf(szCol, "#%06x", Rgb(RgbB(ki), RgbG(ki), RgbR(ki)));
2238 }
2239 return szCol;
2240}
2241
2242
2243// Format and return a string containing a color, either as a palette index

Callers 1

SetEditColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected