Changing color of particles

The particles that I wish to change color are attached to a game object and have all the other necessary components such as the animator and renderer. Here is how I am coding it:

void ChangeColor()
{
    if (GetComponent<ParticleAnimator>().colorAnimation[0] == new Color(255,255,255,10))
    {
        Debug.Log("ChangeColor");

        ParticleAnimator pAnimator = GetComponent<ParticleAnimator>();
        Color[ ] modifedColors = pAnimator.colorAnimation;

            for (int i = 0; i < modifedColors.Length; i++)
            {
                modifedColors *= Color.red;*
 *}*
 *}*
 *else*
 *{*
 *Debug.Log("Already Changed");*
 *}*
*}*
*```*
*<p>Apparently, the condition comparing the first element of the colorAnimation of the ParticleAnimator component is not white, when i know that it is..What could be the problem?</p>*
*<p>I also tried GetComponent().colorAnimation[0].Equals(Color.white); and that did not help either.</p>*

Are you sure it's white? Color.white is Color(1.0, 1.0, 1.0, 1.0) and you could be using Color(1.0, 1.0, 1.0, 0.0) or something.