Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AI_171_GetColor()

Color Terraria.Projectile.AI_171_GetColor ( )
inline

Definition at line 37537 of file Projectile.cs.

37538 {
37539 if (NPC.ShouldEmpressBeEnraged())
37540 {
37541 float lerpValue = Utils.GetLerpValue(0f, 60f, (int)Main.time, clamped: true);
37542 return Color.Lerp(Color.White, Main.OurFavoriteColor, lerpValue) * Opacity;
37543 }
37544 return Main.hslToRgb((ai[1] + 0.5f) % 1f, 1f, 0.5f) * Opacity;
37545 }
static Color Lerp(Color value1, Color value2, float amount)
Definition Color.cs:491

References Terraria.Utils.GetLerpValue(), Terraria.Main.hslToRgb(), Microsoft.Xna.Framework.Color.Lerp(), Terraria.Main.OurFavoriteColor, Terraria.NPC.ShouldEmpressBeEnraged(), Terraria.Main.time, and Microsoft.Xna.Framework.Color.White.