I’m trying to make a color utility class the with adjust color based on their hue (color), saturation (amount of white), and back values.
Does anyone have any idea how – using bitwise operators – to increase the saturation, back or change the hue… something like this:
public function hue( hex:uint, amount:Number)uint
{
return newcolor
}
public function sturation( hex:uint, amount:Number)uint
{
return newcolor
}
public function black( hex:uint, amount:Number)uint
{
return newcolor
}