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

Method SubRGB

Source/Graphics/ColourValue.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161c32 c32::SubRGB( c32 colour ) const
162{
163 u8 r = SubComponent( GetR(), colour.GetR() );
164 u8 g = SubComponent( GetG(), colour.GetG() );
165 u8 b = SubComponent( GetB(), colour.GetB() );
166 u8 a = GetA();
167
168 return c32( r, g, b, a );
169}
170
171c32 c32::SubA( c32 colour ) const
172{

Callers 1

ProcessMethod · 0.80

Calls 5

SubComponentFunction · 0.85
c32Class · 0.70
GetRMethod · 0.45
GetGMethod · 0.45
GetBMethod · 0.45

Tested by

no test coverage detected