From d7f7bf274a0ac85c76d36225c46a714721502629 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sun, 22 Sep 2024 23:48:39 +0200 Subject: [PATCH] Add saturation and brightness values to display --- modules/Huey/Huey.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/Huey/Huey.cpp b/modules/Huey/Huey.cpp index 597303e..4e19485 100644 --- a/modules/Huey/Huey.cpp +++ b/modules/Huey/Huey.cpp @@ -46,7 +46,9 @@ void Huey::render() { // build hue text std::ostringstream hue_oss; - hue_oss << "hue: " << std::setw(3) << static_cast(_hue); + hue_oss << "hue: " << std::setw(3) << static_cast(_hue) << "°"; + hue_oss << ", saturation: " << static_cast(hsb.s * 100) << "%"; + hue_oss << ", brightness: " << static_cast(hsb.b * 100) << "%"; // build rgb text std::ostringstream rgb_oss;