283 {
285
286
287
288
289 fl::u8 t192 = scale8_video(temperature, 191);
290
291
292
293 fl::u8 heatramp = t192 & 0x3F;
294 heatramp <<= 2;
295
296
297 if (t192 & 0x80) {
298
299 heatcolor.r = 255;
300 heatcolor.g = 255;
301 heatcolor.b = heatramp;
302
303 } else if (t192 & 0x40) {
304
305 heatcolor.r = 255;
306 heatcolor.g = heatramp;
307 heatcolor.b = 0;
308
309 } else {
310
311 heatcolor.r = heatramp;
312 heatcolor.g = 0;
313 heatcolor.b = 0;
314 }
315
316 return heatcolor;
317}