From 4c7db0606ac60fce72ea4c11b8bb93d0fac68a60 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 6 Apr 2020 18:48:10 -0400 Subject: [PATCH] utility error fix --- Utilities/CalamityUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 2038fb18e8..8987da7f46 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -2320,7 +2320,7 @@ namespace CalamityMod /// How long you want it to take to swap between colors public static Color ColorSwap(Color firstColor, Color secondColor, float seconds) { - double timeMult = (double)(MathHelper.PiOver2 / seconds); + double timeMult = (double)(MathHelper.TwoPi / seconds); float colorMePurple = (float)((Math.Sin(timeMult * Main.GlobalTime) + 1) * 0.5f); return Color.Lerp(firstColor, secondColor, colorMePurple); }