mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Add Hex display
This commit is contained in:
parent
0dd67c92f1
commit
e608e2f34f
|
@ -772,7 +772,7 @@ static void ColVariableCommand(IConsole::IResult *pResult, void *pUserData)
|
|||
pData->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", aBuf);
|
||||
|
||||
ColorRGBA rgb = color_cast<ColorRGBA>(hsl);
|
||||
str_format(aBuf, sizeof(aBuf), "R: %d, G: %d, B: %d", round_truncate(rgb.r * 255), round_truncate(rgb.g * 255), round_truncate(rgb.b * 255));
|
||||
str_format(aBuf, sizeof(aBuf), "R: %d, G: %d, B: %d, #%06X", round_truncate(rgb.r * 255), round_truncate(rgb.g * 255), round_truncate(rgb.b * 255), rgb.Pack() & 0xFFFFFF);
|
||||
pData->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", aBuf);
|
||||
|
||||
if(pData->m_Alpha)
|
||||
|
|
Loading…
Reference in a new issue