Say I have a constant RGB color value and plug it into the input factor of the color ramp.

Does anyone know how does blender casts a RGB color to a one dimensional value? Does it first compute the amplitude of the color vector and then passes that as the factor, or does it apply color ramp per component of the input vector?
