Gimp.Drawable.prototype.color_balance
function color_balance(transfer_mode: Gimp.TransferMode, preserve_lum: Boolean, cyan_red: Number(gdouble), magenta_green: Number(gdouble), yellow_blue: Number(gdouble)): Boolean {
// Gjs wrapper for gimp_drawable_color_balance()
}
Modify the color balance of the specified drawable.
Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, mid-tones, and highlights in an image to be affected differently. The 'preserve-lum' parameter, if TRUE, ensures that the luminosity of each pixel remains fixed.
Since 2.10
- transfer_mode
Transfer mode.
- preserve_lum
Preserve luminosity values at each pixel.
- cyan_red
Cyan-Red color balance.
- magenta_green
Magenta-Green color balance.
- yellow_blue
Yellow-Blue color balance.
- Returns
TRUE on success.