computeColor: Fix the color order

The order is BGR, not RGB.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent 3d07ca4614
commit fa1e3e3669

@ -60,7 +60,7 @@ namespace Akela {
uint8_t g = (int)(((heatColors[idx2][1] - heatColors[idx1][1]) * fb + heatColors[idx1][1]) * 255);
uint8_t b = (int)(((heatColors[idx2][2] - heatColors[idx1][2]) * fb + heatColors[idx1][2]) * 255);
return {r, g, b};
return {b, g, r};
}
Heatmap::Heatmap (void) {

Loading…
Cancel
Save