From c0fc748de6ab334a5b58808cd137fa12046017da Mon Sep 17 00:00:00 2001 From: paxcut <53811119+paxcut@users.noreply.github.com> Date: Wed, 30 Apr 2025 08:40:32 -0700 Subject: [PATCH] fix: rgb color attribute is always blue. The color attribute does not nclude an alpha component but the RGB types were including an alpha of 255 in their color attributes. The 0xFF was being assigned to the blue component hence the error. --- includes/type/color.pat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/type/color.pat b/includes/type/color.pat index b2cebf7..42a939f 100644 --- a/includes/type/color.pat +++ b/includes/type/color.pat @@ -21,7 +21,7 @@ namespace auto type { g : G; b : B; if (A > 0) a : A; - } [[sealed, format("type::impl::format_color"), color(std::format("{0:02X}{1:02X}{2:02X}FF", r, g, b))]]; + } [[sealed, format("type::impl::format_color"), color(std::format("{0:02X}{1:02X}{2:02X}", r, g, b))]]; /** Type representing a generic RGB color with a variable number of bits for each color @@ -77,4 +77,4 @@ namespace auto type { } -} \ No newline at end of file +}