From ff2b0714db43fff7930b69162a20fe8f15ee6d5e Mon Sep 17 00:00:00 2001 From: Alcibiades Athens Date: Fri, 27 Dec 2024 04:19:22 -0500 Subject: [PATCH] fix: srgba not srgb or rgb --- src/endgame.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endgame.rs b/src/endgame.rs index 5368602..43b96a2 100644 --- a/src/endgame.rs +++ b/src/endgame.rs @@ -35,9 +35,9 @@ impl Plugin for EndgamePlugin { /// Spawns the victory screen UI elements fn spawn_endgame_screen(mut commands: Commands, score: Res) { let (message, color) = if score.p1 > score.p2 { - ("Victory!", Color::srgba(26.0, 228.0, 61.0, 1.0)) // Complementary green + ("Victory!", Color::srgba(0.1, 0.89, 0.24, 1.0)) // Complementary green (26/255, 228/255, 61/255) } else { - ("Defeat!", Color::srgba(228.0, 61.0, 26.0, 1.0)) // Rust orange + ("Defeat!", Color::srgba(0.89, 0.24, 0.1, 1.0)) // Rust orange (228/255, 61/255, 26/255) }; commands