From c7bb0deb0c1dc382d6b1b1f7f881ac9a8babb87d Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 6 Jul 2023 23:36:55 -0400 Subject: [PATCH] use Color4 constants --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index e654a7f..ee80a2e 100644 --- a/Program.cs +++ b/Program.cs @@ -307,7 +307,7 @@ public class Game : GameWindow { Rectangle box = new Rectangle(windowWidth - thumbnailWidth, i * thumbnailHeight, thumbnailWidth, thumbnailHeight); DrawTexture(textures[i], box); if (i == textureIndex) { - DrawBox(box, 3, new Color4(1f, 1f, 0f, 1f)); + DrawBox(box, 3, Color4.GreenYellow); } } @@ -315,7 +315,7 @@ public class Game : GameWindow { } void DrawTexture(Texture texture, Rectangle box) { - DrawTexture(texture, box, new Color4(1f, 1f, 1f, 1f)); + DrawTexture(texture, box, Color4.White); } void DrawTexture(Texture texture, Rectangle box, Color4 color) {