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

Function ModulateComponent

Source/Graphics/ColourValue.cpp:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88inline u8 ModulateComponent( u8 a, u8 b )
89{
90 return u8( ( u32( a ) * u32( b ) ) >> 8 ); // >> 8 to return to 0..255
91}
92
93inline u8 InterpolateComponent( u8 a, u8 b, float factor )
94{

Callers 3

ModulateMethod · 0.85
ModulateRGBMethod · 0.85
ModulateAMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected