grayscale
Applies a grayscale transformation to the current color matrix using the specified red, green, and blue coefficients.
Parameters
r
The coefficient for the red channel. Default is 1.0/3.0.
g
The coefficient for the green channel. Default is 1.0/3.0.
b
The coefficient for the blue channel. Default is 1.0/3.0.