Creates an RGBColor using the values from the supplied array.
The color components have values between 0 and 1.
Sample code:
var components = [1, 0, 0];
var color = new RGBColor(components);
print(color); // { red: 1.0, green: 0.0, blue: 0.0 }
Parameters:- components: Array of Number