From f9f49b7712af451870c3bb52108690c01f3fe804 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Thu, 3 Feb 2022 00:34:31 -0700 Subject: [PATCH] Change fill method to prevent color artifacting --- jarvis/cogs/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/util.py b/jarvis/cogs/util.py index a7a9fc5..c37da98 100644 --- a/jarvis/cogs/util.py +++ b/jarvis/cogs/util.py @@ -168,7 +168,7 @@ class UtilCog(commands.Cog): data = np.array(JARVIS_LOGO) r, g, b, a = data.T - fill = (r == 52) & (g == 152) & (b == 219) + fill = a > 0 data[..., :-1][fill.T] = list(role.color.to_rgb())