HomeAbout

Color

From the site:

One small thing I’ve always found a bit handy with CSS in XHTML is the ability to type familiar names for colors rather than the hex value.

Unfortunately, Flash’s StyleSheet does not support color names at all and Flex’s StyleManager only supports the 16 basic VGA color names.

I decided to write a class that adds static properties for all of the color names defined by SVG 1.0 (The colors in SVG 1.0 include the X11 colors with the addition of gray/grey variants. X11 includes the 16 basic VGA, or HTML4, colors as well). This class also adds two static convenience methods for returning a Color* object by passing in the color name or hexadecimal color value.

http://www.digitalflipbook.com/archives/2008/06/color_name_clas.php

ColorMatrix

Quasimondo’s ColorMatrix class upgraded to AS3, with new features. From the site:

Compared to the AS2 version I have added several new methods and of course tried to use optimizations wherever possible. Two new methods that are especially interesting are:

rotateHue() which tries to preserve the luminance whilst changing the hue (which means this is the “correct” but calculation wise more complicated way of doing it).

applyColorDeficiency() which I ported back from the Javascript version that the guys at NoFunc created from my Actionscript version and which allows to preview images the way colorblind people would see it.

http://www.quasimondo.com/archives/000671.php

TweenMax

TweenMax builds on top of the TweenLite core class and its big brother, TweenFilterLite, to round out the tweening family with popular (though not essential) features like bezier tweening, pause/resume capabilities, easier sequencing, hex color tweening, and more. TweenMax uses the same easy-to-learn syntax as its siblings. In fact, since it extends them, TweenMax can do anything TweenLite and/or TweenFilterLite can do, plus more. It also introduces an innovative feature called “bezierThrough” that allows you to define points through which you want the bezier curve to travel (instead of normal control points that simply attract the curve). Or use regular bezier curves - whichever you prefer. There are interactive samples at the site (AS2 and AS3 versions):

www.TweenMax.com

ColorSampler

From the site:

Color sampling engine for DisplayObjects. Takes a defined sample area (width, height, x, y) of a BitmapData object and computes the average color within the area. The RGB, red channel, green channel, blue channel, hue, saturation, and brightness values are stored from the sample.

http://www.somerandomdude.net/blog/flash/actionscript-3-color-sampler-class-download/

AdvancedColor

The AdvancedColor object essentially extends the built-in Color object by adding the ability to specify color for a movie clip in any of the RGB, HLS or HSV/B color spaces. It also provides static methods that allow direct conversion between color spaces.

http://natecook.com/downloads/color.html

ColorFader

Fade to a given hex color over a given duration.

http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/ColorFader.as 

Part of senocular’s Actionscript library.

Designer Class

From the site:

Control the Drawing API in Flash with this easy-to-use Class. Simple ActionScript Commands can draw circles, squares or complex shapes with gradients in just one line of code.

http://www.pippoflash.com/index.php/2006/02/01/download-designer-class/

ColorMatrix

From the site:

The new ColorMatrixFilter is a very versatile tool that allows for many color manipulations, many more than the good old ColorTransform was capable of. The only problem with the filter is that in order to use it you will have to feed it with a ColorMatrix which in pratice is an array of 20 elements. Not really the most intuitive way…The ColorMatrix class takes care for all the matrix operations that are necessary to achieve those effects.

Demo and source: http://www.quasimondo.com/archives/000565.php

Color Mutation

Smoothly tween an mc’s color in AS 3

http://www.onflex.org/code/2006/08/as-class-color-mutation-class-by-jaco.html