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 extends the extremely lightweight, FAST TweenLite engine, adding many useful features like pause/resume, timeScale, AS3 Event listeners, reverse(), restart(), setDestination(), yoyo, loop, rounding, and the ability to jump to any point in the tween using the “progress” property. It also activates many extra plugins by default, making it extremely full-featured. Since TweenMax extends TweenLite, it can do ANYTHING TweenLite can do plus much more. Same syntax. There are plenty of other tweening engines out there to choose from, so here’s why you might want to consider TweenMax:

  • SPEED – I’m not aware of any popular tweening engine with a similar feature set that’s as fast as TweenMax. See the speed comparisons yourself.
  • Feature set – In addition to tweening ANY numeric property of ANY object, TweenMax can tween filters, hex colors, volume, tint, frames, saturation, contrast, hue, colorization, brightness, and even do bezier tweening, orientToBezier, pause/resume, reverse(), restart(), round values, jump to any point in the tween with the “progress” property, automatically rotate in the shortest direction, plus LOTS more. Overwrite management is an important consideration for a tweening engine as well which is another area where the GreenSock tweening platform shines. You have options for AUTO overwriting or you can manually define how each tween will handle overlapping tweens of the same object.
  • Expandability – With its new plugin architecture, you can activate as many (or as few) features as your project requires. Or write your own plugin if you need a feature that’s unavailable. Minimize bloat, and maximize performance.
  • Management featuresTweenGroup makes it surprisingly simple to create complex sequences and groups of TweenLite/Max tweens that you can pause(), resume(), restart(), or reverse(). You can even tween a TweenGroup’s “progress” property to fastforward or rewind the entire group/sequence.
  • Ease of use – Designers and Developers alike rave about how intuitive the GreenSock tweening platform is.
  • Updates – Frequent updates and feature additions make the GreenSock tweening platform reliable and robust.
  • AS2 and AS3 – Most other engines are only developed for AS2 or AS3 but not both.

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