MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Modulate

Method Modulate

Source/Graphics/ColourValue.cpp:181–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181c32 c32::Modulate( c32 colour ) const
182{
183 u8 r = ModulateComponent( GetR(), colour.GetR() );
184 u8 g = ModulateComponent( GetG(), colour.GetG() );
185 u8 b = ModulateComponent( GetB(), colour.GetB() );
186 u8 a = ModulateComponent( GetA(), colour.GetA() );
187
188 return c32( r, g, b, a );
189}
190
191c32 c32::ModulateRGB( c32 colour ) const
192{

Callers

nothing calls this directly

Calls 6

ModulateComponentFunction · 0.85
c32Class · 0.70
GetRMethod · 0.45
GetGMethod · 0.45
GetBMethod · 0.45
GetAMethod · 0.45

Tested by

no test coverage detected