From 0bc1bd8549ab6aff48924618b956b13b3a21775b Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 3 May 2021 02:18:26 +0200 Subject: [PATCH] Fixed color interpolation bug --- core/src/gui/widgets/waterfall.cpp | 1 - core/src/utils/color.h | 6 ------ 2 files changed, 7 deletions(-) diff --git a/core/src/gui/widgets/waterfall.cpp b/core/src/gui/widgets/waterfall.cpp index e7abbc71..c1334faf 100644 --- a/core/src/gui/widgets/waterfall.cpp +++ b/core/src/gui/widgets/waterfall.cpp @@ -7,7 +7,6 @@ #include #include #include -#include float DEFAULT_COLOR_MAP[][3] = { {0x00, 0x00, 0x20}, diff --git a/core/src/utils/color.h b/core/src/utils/color.h index 4bb52e53..450dbaa7 100644 --- a/core/src/utils/color.h +++ b/core/src/utils/color.h @@ -41,10 +41,4 @@ namespace color { g += m; b += m; } - - inline void interpRGB(float ar, float ag, float ab, float br, float bg, float bb, float& or, float& og, float& ob, float ratio) { - or = ar + (br - ar) * ratio; - og = ag + (bg - ag) * ratio; - ob = ab + (bb - ab) * ratio; - } } \ No newline at end of file