nl.stroep.utils.Color

ActionScript, Code snippets

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

Usage:import nl.stroep.utils.Color

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

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

Download
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 gist.github.com.