| 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 | { |