nl.stroep.utils.Color (2)
June 4th, 2009, under Actionscript, Code snippets.
Class 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 class, Code snippets, color.





















