From d64ac472027b9bcd6eefb4c9e86f85311769f7fa Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 1 Jan 2025 17:26:05 +0100 Subject: pass: improve pass debugging --- src/helpers/Color.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/helpers/Color.hpp') diff --git a/src/helpers/Color.hpp b/src/helpers/Color.hpp index cf7f7943..0ea816f3 100644 --- a/src/helpers/Color.hpp +++ b/src/helpers/Color.hpp @@ -18,6 +18,7 @@ class CHyprColor { Hyprgraphics::CColor::SOkLab asOkLab() const; Hyprgraphics::CColor::SHSL asHSL() const; CHyprColor stripA() const; + CHyprColor modifyA(float newa) const; // bool operator==(const CHyprColor& c2) const { @@ -45,3 +46,18 @@ class CHyprColor { private: Hyprgraphics::CColor::SOkLab okLab; // cache for the OkLab representation }; + +//NOLINTNEXTLINE +namespace Colors { + static const CHyprColor WHITE = CHyprColor(1.F, 1.F, 1.F, 1.F); + static const CHyprColor GREEN = CHyprColor(0.F, 1.F, 0.F, 1.F); + static const CHyprColor BLUE = CHyprColor(0.F, 0.F, 1.F, 1.F); + static const CHyprColor RED = CHyprColor(1.F, 0.F, 0.F, 1.F); + static const CHyprColor ORANGE = CHyprColor(1.F, 0.5F, 0.F, 1.F); + static const CHyprColor YELLOW = CHyprColor(1.F, 1.F, 0.F, 1.F); + static const CHyprColor MAGENTA = CHyprColor(1.F, 0.F, 1.F, 1.F); + static const CHyprColor PURPLE = CHyprColor(0.5F, 0.F, 0.5F, 1.F); + static const CHyprColor LIME = CHyprColor(0.5F, 1.F, 0.1F, 1.F); + static const CHyprColor LIGHT_BLUE = CHyprColor(0.1F, 1.F, 1.F, 1.F); + static const CHyprColor BLACK = CHyprColor(0.F, 0.F, 0.F, 1.F); +}; -- cgit v1.2.3