Name
GammaPalette -- correct gamma values of palette (V9.0)
Synopsis
GammaPalette(id, red, green, blue)
Function
This function can be used to gamma correct the color channels of the specified palette. For each color channel, you have to pass a floating point value that specifies the desired gamma correction. A value of 1.0 means no change, a value smaller than 1.0 darkens the channel, a value greater than 1.0 lightens the channel.

Inputs
id
palette to gamma correct
red
gamma correction for red channel
green
gamma correction for green channel
blue
gamma correction for blue channel
Example
GammaPalette(1, 1.5, 1.0, 0.5)
The code above lightens the red channel and darkens the blue channel, while leaving the green color channel untouched.

Show TOC