Name
ModulatePalette -- change brightness, saturation, and hue of palette (V9.0)
Synopsis
ModulatePalette(id, brightness, saturation, hue)
Function
This function can be used to change the brightness, saturation, and hue settings of the colors in a palette. 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.

Inputs
id
palette to modulate
brightness
desired brightness correction
saturation
desired saturation correction
hue
desired hue correction
Example
ModulatePalette(1, 1.0, 2.0, 1.0)
The code above increases the saturation while leaving brightness and hue untouched. The result is a palette with emphasized colors, just like in a cartoon.

Show TOC