MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getShade

Function getShade

src/OpenLoco/src/Graphics/Colour.cpp:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 uint8_t getShade(Colour colour, uint8_t shade)
236 {
237 assert(enumValue(colour) <= 31);
238
239 if (shade < 8)
240 {
241 return _colourMapA[enumValue(colour)][shade];
242 }
243
244 return _colourMapB[enumValue(colour)][shade - 8];
245 }
246
247 // 0x005045FA
248 ExtColour getTranslucent(Colour colour)

Callers 15

graphDrawAxesAndLabelsFunction · 0.85
drawFunction · 0.85
drawTabMethod · 0.85
drawTabBackgroundFunction · 0.85
drawTabContentFunction · 0.85
sub_4CADE8Function · 0.85
drawImageFunction · 0.85
drawMethod · 0.85
drawHScrollFunction · 0.85
drawVScrollFunction · 0.85
drawMethod · 0.85

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected