October 2005
Intermediate to advanced
1376 pages
27h 40m
English
Object
|
+-flash.geom.ColorTransform
public class ColorTransform
extends ObjectThe 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 ...
Read now
Unlock full access