From 8e8cf7bf4c51f6542b5f376be24ce0ea7feca83d Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 25 Apr 2021 13:51:41 -0400 Subject: [PATCH] raylib logo --- src/logic/loadingscreen.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/logic/loadingscreen.rs b/src/logic/loadingscreen.rs index 06056c1..aa13ef2 100644 --- a/src/logic/loadingscreen.rs +++ b/src/logic/loadingscreen.rs @@ -89,10 +89,10 @@ impl LoadingScreen { let mask = self.get_logo_mask(playthrough_percent); // Create modified colors - let alpha_orange = Color { - r: RUST_ORANGE.r, - g: RUST_ORANGE.g, - b: RUST_ORANGE.b, + let alpha_black = Color { + r: 0, + g: 0, + b: 0, a: mask.a, }; @@ -102,7 +102,7 @@ impl LoadingScreen { win_height / 2 - 128, 256, 256, - alpha_orange, + alpha_black, ); draw_handle.draw_rectangle( win_width / 2 - 112, @@ -111,19 +111,19 @@ impl LoadingScreen { 224, Color::WHITE, ); - draw_handle.draw_text( - "rust", - win_width / 2 - 69, - win_height / 2 + 18, - 50, - alpha_orange, - ); + // draw_handle.draw_text( + // "rust", + // win_width / 2 - 69, + // win_height / 2 + 18, + // 50, + // alpha_orange, + // ); draw_handle.draw_text( "raylib", win_width / 2 - 44, win_height / 2 + 48, 50, - alpha_orange, + alpha_black, ); // Move on to next logo if needed