By setting the gain of a color sensor, you can adjust for different lighting conditions. For example, if you detect lower color values than expected, you can increase the gain. The gain value is only applied to the argb() and getNormalizedColors() methods, not to the raw color methods....