Color conversion methods (expression reference), Other math methods (expression reference) – Adobe After Effects User Manual

Page 689

Advertising
background image

ease(t, value1, value2)

ease(t, tMin, tMax, value1, value2)

easeIn(t, value1, value2)

easeIn(t, tMin, tMax, value1, value2)

easeOut(t, value1, value2)

easeOut(t, tMin, tMax, value1, value2)

To the top

rgbToHsl(rgbaArray)

hslToRgb(hslaArray)

To the top

degreesToRadians(degrees)

Argument type: t is a Number, and value1 and value2 are Numbers or Arrays.

Returns a value that linearly interpolates from value1 to value2 as t ranges from 0 to 1. Returns value1 when t <= 0. Returns value2 when t >= 1.

Return type: Number or Array.

Argument type: t is a Number, and value1 and value2 are Numbers or Arrays.

Similar to linear with the same arguments, except that the interpolation eases in and out so that the velocity is 0 at the start and end points.

This method results in a very smooth animation.

Return type: Number or Array.

Argument type: t, tMin, and tMax are Numbers, and value1 and value2 are Numbers or Arrays.

Similar to linear with the same arguments, except that the interpolation eases in and out so that the velocity is 0 at the start and end points.

This method results in a very smooth animation.

Return type: Number or Array.

Argument type: t is a Number, and value1 and value2 are Numbers or Arrays.

Similar to ease, except that the tangent is 0 only on the value1 side and interpolation is linear on the value2 side.

Return type: Number or Array.

Argument type: t, tMin, and tMax are Numbers, and value1 and value2 are Numbers or Arrays.

Similar to ease, except that the tangent is 0 only on the tMin side and interpolation is linear on the tMax side.

Return type: Number or Array.

Argument type: t is a Number, and value1 and value2 are Numbers or Arrays.

Similar to ease, except that the tangent is 0 only on the value2 side and interpolation is linear on the value1 side.

Return type: Number or Array.

Argument type: t, tMin, and tMax are Numbers, and value1 and value2 are Numbers or Arrays.

Similar to ease, except that the tangent is 0 only on the tMax side and interpolation is linear on the tMin side.

Color Conversion methods (expression reference)

Harry Frank provides a video tutorial on his

graymachine website

that shows how to use these color conversion methods to change the color of the

waves produced by the Radio Waves effect.

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")

Return type: Array [4].

Argument type: hslaArray is an Array [4].

Converts a color in HSLA space to RGBA space. This conversion is the opposite of the conversion performed by the rgbToHsl method.

Other Math methods (expression reference)

Chris and Trish Meyer provide additional information about these methods in an article on the

ProVideo Coalition website

.

Return type: Number.

685

Advertising
This manual is related to the following products: