Hi, I created an image using Photoshop Gaussian blur. I am trying to change the colour of it using a script. But whenever I do that, the picture becomes kind of pixelated [Image Included]. The code I am using to change the colour is -
`Color primaryColor = new Color[1];
Color secondaryColor = new Color[1];
primaryColor[0] = new Color(255f,0f,0f,255f);
secondaryColor[0] = new Color(255f,255f,255f,255f);
topRender.material.color = primaryColor[Random.Range(0, 1)];
bottomRender.material.color = secondaryColor[Random.Range(0, 1)];`
Note: When I manually change the colour from the Renderer in Unity, this does not happen.
These are just the snaps of the code. I am putting them in an array because I am trying to randomize the colour of the object.