| 195 | |
| 196 | |
| 197 | uint32_t Kelvin2RGB::BGR() |
| 198 | { |
| 199 | return uint8_t(255 * _blue + 0.5) * 65536UL + uint8_t(255 * _green + 0.5) * 256UL + uint8_t(255 * _red + 0.5); |
| 200 | // return round(255 * 65536UL * _blue) + round(255 * 256UL * _green) + round(255 * _red); |
| 201 | } |
| 202 | |
| 203 | |
| 204 | ///////////////////////////////////////////////////////////// |