Name
ModulateBrush -- change brightness, saturation, and hue of brush (V5.0)
Synopsis
ModulateBrush(id, brightness, saturation, hue)
Function
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.

Note that if id specifies a palette brush, ModulateBrush() will just modulate the palette colors which makes this function really fast when used with palette brushes.

Inputs
id
brush to modulate
brightness
desired brightness correction
saturation
desired saturation correction
hue
desired hue correction
Example
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.

Show TOC