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

Method GetColor

src/game/client/components/skins7.cpp:582–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582ColorRGBA CSkins7::GetColor(int Value, bool UseAlpha) const
583{
584 return color_cast<ColorRGBA>(ColorHSLA(Value, UseAlpha).UnclampLighting(ColorHSLA::DARKEST_LGT7));
585}
586
587void CSkins7::ApplyColorTo(CTeeRenderInfo::CSixup &SixupRenderInfo, bool UseCustomColors, int Value, int Part) const
588{

Callers 3

DoEditBoxMethod · 0.45
DoScrollbarVMethod · 0.45
DoScrollbarHMethod · 0.45

Calls 2

UnclampLightingMethod · 0.80
ColorHSLAClass · 0.50

Tested by

no test coverage detected