MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / PixelLerp

Function PixelLerp

olcPixelGameEngine.h:1980–1983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978 }
1979
1980 Pixel PixelLerp(const olc::Pixel& p1, const olc::Pixel& p2, float t)
1981 {
1982 return (p2 * t) + p1 * (1.0f - t);
1983 }
1984#endif
1985 // O------------------------------------------------------------------------------O
1986 // | olc::Sprite IMPLEMENTATION |

Callers 4

FillTexturedTriangleMethod · 0.85
SampleMethod · 0.85
DrawMethod · 0.85
DrawDecalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected