utility error fix
This commit is contained in:
1 parent
f236b5ef89
commit
4c7db0606a
1 file changed
+1
-1
@@ -2320,7 +2320,7 @@ namespace CalamityMod
|
||||
/// <param name="seconds">How long you want it to take to swap between colors</param>
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user