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

Function PixelF

olcPixelGameEngine.h:1975–1978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1973 }
1974
1975 Pixel PixelF(float red, float green, float blue, float alpha)
1976 {
1977 return Pixel(uint8_t(red * 255.0f), uint8_t(green * 255.0f), uint8_t(blue * 255.0f), uint8_t(alpha * 255.0f));
1978 }
1979
1980 Pixel PixelLerp(const olc::Pixel& p1, const olc::Pixel& p2, float t)
1981 {

Callers 3

UpdateConsoleMethod · 0.85
OnBeforeUserUpdateMethod · 0.85
OnUserUpdateMethod · 0.85

Calls 1

PixelClass · 0.85

Tested by 1

OnUserUpdateMethod · 0.68