Skip to content

Instantly share code, notes, and snippets.

@seblavoie
Last active November 13, 2015 16:16
Show Gist options
  • Save seblavoie/e3cc7e59b4b0ebc5df9b to your computer and use it in GitHub Desktop.
Save seblavoie/e3cc7e59b4b0ebc5df9b to your computer and use it in GitHub Desktop.
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]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment