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

◆ Opacity

float Terraria.Projectile.Opacity
getset

Definition at line 550 of file Projectile.cs.

551 {
552 get
553 {
554 return 1f - (float)alpha / 255f;
555 }
556 set
557 {
558 alpha = (int)MathHelper.Clamp((1f - value) * 255f, 0f, 255f);
559 }
560 }
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...

Referenced by Terraria.Projectile.AI_152_SuperStarSlash(), Terraria.Projectile.GetFairyQueenWeaponsColor(), and Terraria.Projectile.SetDefaults().