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

◆ AI_173_GetColor()

Color Terraria.Projectile.AI_173_GetColor ( )
inline

Definition at line 37425 of file Projectile.cs.

37426 {
37427 if (NPC.ShouldEmpressBeEnraged())
37428 {
37429 float lerpValue = Utils.GetLerpValue(0f, 60f, (int)Main.time, clamped: true);
37430 return Color.Lerp(Color.White, Main.OurFavoriteColor, lerpValue) * Opacity;
37431 }
37432 return Main.hslToRgb((ai[1] + 0f) % 1f, 1f, 0.5f) * Opacity;
37433 }
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.