parametrizats els colors de les camisetes dels jugadors quan pillen café

This commit is contained in:
2025-08-16 13:12:22 +02:00
parent a123b3aa93
commit 6102504d32
9 changed files with 173 additions and 14 deletions
+8
View File
@@ -81,6 +81,14 @@ struct Color {
return Color(new_r, new_g, new_b, new_a);
}
// Convierte el color a un entero de 32 bits en formato RGBA
[[nodiscard]] constexpr auto toUint32() const -> Uint32 {
return (static_cast<Uint32>(r) << 24) |
(static_cast<Uint32>(g) << 16) |
(static_cast<Uint32>(b) << 8) |
static_cast<Uint32>(a);
}
};
// Estructura para definir un color HSV