Stroep

Just a collection of random works – Mark Knol

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

Tagged with , , . | Tiny URL http://tinyurl.com/oc6oaw

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.

Trackbacks

    Leave a Reply