| 1883 | } |
| 1884 | |
| 1885 | Pixel Pixel::operator * (const float i) const |
| 1886 | { |
| 1887 | float fR = std::min(255.0f, std::max(0.0f, float(r) * i)); |
| 1888 | float fG = std::min(255.0f, std::max(0.0f, float(g) * i)); |
| 1889 | float fB = std::min(255.0f, std::max(0.0f, float(b) * i)); |
| 1890 | return Pixel(uint8_t(fR), uint8_t(fG), uint8_t(fB), a); |
| 1891 | } |
| 1892 | |
| 1893 | Pixel Pixel::operator / (const float i) const |
| 1894 | { |