ColorTransform (flash.geom.ColorTransform)


public class ColorTransform
extends Object

The ColorTransform class lets you mathematically adjust all of the color values in a movie clip. The color adjustment function or color transformation can be applied to all four channels: red, green, blue, and alpha transparency.

When a ColorTransform object is applied to a movie clip, a new value for each color channel is calculated like this:

  • New red value = (old red value * redMultiplier) + redOffset

  • New green value = (old green value * greenMultiplier) + greenOffset

  • New blue value = (old blue value * blueMultiplier) + blueOffset

  • New alpha value = (old alpha value * alphaMultiplier) + alphaOffset

If any of the color channel ...

Get ActionScript 2.0 Language Reference for Macromedia® Flash® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.