API ReferenceFunctionsgrayOn this pageFunction: gray() function gray(value): GrayColor; Creates a grayscale color object using a normalized value from 0 for black to 1 for white. Parameters ParameterTypeDescriptionvaluenumberGray channel value from 0 to 1. Returns GrayColor The grayscale color object.