Add saturation and brightness values to display

This commit is contained in:
Bob Polis 2024-09-22 23:48:39 +02:00
parent ff8feceefc
commit d7f7bf274a

View File

@ -46,7 +46,9 @@ void Huey::render() {
// build hue text
std::ostringstream hue_oss;
hue_oss << "hue: " << std::setw(3) << static_cast<int>(_hue);
hue_oss << "hue: " << std::setw(3) << static_cast<int>(_hue) << "°";
hue_oss << ", saturation: " << static_cast<int>(hsb.s * 100) << "%";
hue_oss << ", brightness: " << static_cast<int>(hsb.b * 100) << "%";
// build rgb text
std::ostringstream rgb_oss;