ModulateBrush -- change brightness, saturation, and hue of brush (V5.0)
ModulateBrush(id, brightness, saturation, hue)
This function can be used to change the brightness, saturation, and hue
settings of a brush. For each setting, you need to pass a floating point
value that describes the desired change. A value of 1.0 means no change,
a value smaller than 1.0 reduces the brightness/saturation/hue, while a
value greater than 1.0 enhances it.
brush to module
desired brightness correction
desired saturation correction
desired hue correction
ModulateBrush(1, 1.0, 2.0, 1.0)
The code above increases the saturation while leaving brightness and
hue untouched. The result is an image with emphasized colors, just like
in a cartoon.