kOS.Suffixed.VectorRenderer.RenderColor C# (CSharp) Метод

RenderColor() публичный Метод

Calculates colors and applies transparency fade effect. Only needs to be called when the color changes.
public RenderColor ( ) : void
Результат void
        public void RenderColor()
        {
            Color c1 = Color.Color;
            Color c2 = Color.Color;
            c1.a = c1.a * (float)0.25;
            Color lCol = UnityEngine.Color.Lerp(c2, UnityEngine.Color.white, 0.7f); // "whiten" the label color a lot.

            if (line != null && hat != null)
            {
                line.SetColors(c1, c2); // The line has the fade effect
                hat.SetColors(c2, c2);  // The hat does not have the fade effect.
                label.color = lCol;     // The label does not have the fade effect.
            }
        }