nl.stroep.utils.Color (2)

, under actionscript, Code snippets.

Code snippetClass to work/calculate with colors. You can easily abstract the red, green or blue values from a color.

Usage:[as]import nl.stroep.utils.Color

// create orange color
var myColor:Color = new Color(0xFFCC00);

trace(“value”, myColor.value);
trace(“green “,;

Check out the Color class at googlecode

2 responses to “nl.stroep.utils.Color”

  1. senocular says:

    ColorTransform already does this.

  2. Mark Knol says:

    Hi senocular, I never noticed this was already implemented. I always thought ColorTransform class only was available in the transform oject of a displayobject or in combination with bitmapdata functions.

Say something interesting

Please link to code from an external resource, like