Change color of one pixel of a texture

I am using this lines of code to change the color of a texture from red to pink:

texture = Texture2D.redTexture;
material.mainTexture = texture;
// Reset all pixels color to pink
            Color32 resetColor = new Color32(255, 0, 255, 0);
            Color32[] resetColorArray = texture.GetPixels32();
            for (int i = 0; i < resetColorArray.Length; i++)
                resetColorArray *= resetColor;*


Now I would like to change the color of one pixel only… How could I do that? thank you!

Use Texture.SetPixel instead

             texture.SetPixel(x, y, color);