// Generate a new color based in how much photons were absorbed by this receiver public Color ReadColor() { Color c = new Color(); // Clamp the values between the limits [0;channelMax] and them normalize it (value between 0 and 1) c.r = redFlashlight.GetIntensity(); c.g = greenFlashlight.GetIntensity(); c.b = blueFlashlight.GetIntensity(); c.a = 1f; return(c); }