Change fill method to prevent color artifacting

This commit is contained in:
Zeva Rose 2022-02-03 00:34:31 -07:00
parent bf3e166360
commit f9f49b7712

View file

@ -168,7 +168,7 @@ class UtilCog(commands.Cog):
data = np.array(JARVIS_LOGO) data = np.array(JARVIS_LOGO)
r, g, b, a = data.T 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()) data[..., :-1][fill.T] = list(role.color.to_rgb())