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.
This commit is contained in:
paxcut
2025-04-30 08:40:32 -07:00
committed by GitHub
parent 89307ba8a5
commit c0fc748de6

View File

@@ -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 {
}
}
}