seblavoie
7/26/2012 - 3:41 PM

Color alteration in After Effects

Color alteration in After Effects

var _sourceColor, _hslColor, _hue, _saturation, _lightness;

_sourceColor = effect("Fill")("Color"); 
_hslColor = rgbToHsl(_sourceColor);

_hue = _hslColor[0];
_saturation = _hslColor[1];
_lightness = _hslColor[2] - .2; // Here you go

hslToRgb([_hue, _saturation, _lightness, 1]);