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

Function SzColor2

general.cpp:2246–2258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2244// name (abbreviated to its first three characters) or a general RGB value.
2245
2246char *SzColor2(KI ki)
2247{
2248 static char szCol[8];
2249
2250 if (ki >= 0)
2251 sprintf(szCol, "%.3s", szColor[ki]);
2252 else {
2253 // Compose RGB color value.
2254 neg(ki);
2255 sprintf(szCol, "#%06x", Rgb(RgbB(ki), RgbG(ki), RgbR(ki)));
2256 }
2257 return szCol;
2258}
2259
2260
2261CONST char *szColorHTML[cColor2] = {

Callers 1

FOutputSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected