200 {
202
203
204
205
207
208
209
210 fl::u8 heatramp = t192 & 0x3F;
211 heatramp <<= 2;
212
213
214 if (t192 & 0x80) {
215
216 heatcolor.r = 255;
217 heatcolor.g = 255;
218 heatcolor.b = heatramp;
219
220 } else if (t192 & 0x40) {
221
222 heatcolor.r = 255;
223 heatcolor.g = heatramp;
224 heatcolor.b = 0;
225
226 } else {
227
228 heatcolor.r = heatramp;
229 heatcolor.g = 0;
230 heatcolor.b = 0;
231 }
232
233 return heatcolor;
234}
LIB8STATIC_ALWAYS_INLINE uint8_t scale8_video(uint8_t i, fract8 scale)
The "video" version of scale8() guarantees that the output will be only be zero if one or both of the...
Representation of an RGB pixel (Red, Green, Blue)