ColorRamp.fromColorStops constructor
Creates a custom color ramp with a linear gradient between the provided color stops.
Any pixel values placed in a position before the minimum position provided or after the maximum position provided will be shaded with the color of the nearest color stop.
The alpha channel of each color is ignored, so every color is treated as if it were completely opaque.
Parameters:
colorStops— A list of two or more color stops that the color ramp will blend between.size— The number of steps in the complete resulting gradient. A typical value is 256.