You will need to modify the PinchDraw script. The color of the line is set by the Material property of the script. To change the color, you will need to dynamically modify the material's properties. This is a little bit tricky in Unity, I think the best way to change the color in this scenario is using a MaterialPropertyBlock, but I could be wrong. Since a line segment only has a single material, you probably also want to finish the current line and begin a new line when you change colors. The PinchDraw class has functions for that.