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

◆ buffColor()

static Color Terraria.NPC.buffColor ( Color newColor,
float R,
float G,
float B,
float A )
inlinestatic

Definition at line 87765 of file NPC.cs.

87766 {
87767 newColor.R = (byte)((float)(int)newColor.R * R);
87768 newColor.G = (byte)((float)(int)newColor.G * G);
87769 newColor.B = (byte)((float)(int)newColor.B * B);
87770 newColor.A = (byte)((float)(int)newColor.A * A);
87771 return newColor;
87772 }

References System.A, System.B, System.G, and System.R.