After Effects CS3  |  Go to CS4 Help

Color Conversion methods

Harry Frank provides a video tutorial that shows how to use these color conversion methods to change the color of the waves produced by the Radio Waves effect: www.adobe.com/go/learn_ae_harryrgb2hsl.

rgbToHsl(rgbaArray)
Return type: Array [4].

Argument type: rgbaArray is an Array [4].

Converts a color in RGBA space to HSLA space. The input is an Array of normalized red, green, blue, and alpha channel values, all in the range of 0.0 to 1.0. The resulting value is an Array of hue, saturation, lightness, and alpha channel values, also in the range of 0.0 to 1.0. Example:

  rgbToHsl.effect("Change Color")("Color To Change")

hslToRgb(hslaArray)
Return type: Array [4].

Argument type: hslaArray is an Array [4].

Converts a color in HSLA space to RGBA space. This is the opposite of rgbToHsl.


Comments

Comments are no longer accepted for After Effects CS3. After Effects CS4 is the current version. To discuss After Effects CS3, please use the Adobe forum.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-7a05.html