Packagesandy.util
Classpublic final class ColorUtil



Public Methods
 MethodDefined by
  
calculateLitColour(col:Number, lightStrength:Number):Number
[static] Calculate the colour for a particular lighting strength.
ColorUtil
Method detail
calculateLitColour()method
public static function calculateLitColour(col:Number, lightStrength:Number):Number

Calculate the colour for a particular lighting strength. This converts the supplied pre-multiplied RGB colour into HSL then modifies the L according to the light strength. The result is then mapped back into the RGB space.

Parameters
col:Number
 
lightStrength:Number

Returns
Number