MCPcopy Create free account
hub / github.com/ddnet/ddnet / ColorToLogColor

Function ColorToLogColor

src/engine/shared/console.cpp:354–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354static LOG_COLOR ColorToLogColor(ColorRGBA Color)
355{
356 return LOG_COLOR{
357 (uint8_t)(Color.r * 255.0),
358 (uint8_t)(Color.g * 255.0),
359 (uint8_t)(Color.b * 255.0)};
360}
361
362void CConsole::Print(int Level, const char *pFrom, const char *pStr, ColorRGBA PrintColor) const
363{

Callers 1

PrintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected