| Method | Defined by | ||
|---|---|---|---|
|
calculateLitColour(col:Number, lightStrength:Number):Number
[static]
Calculate the colour for a particular lighting strength.
| ColorUtil | ||
| calculateLitColour | () | method |
public static function calculateLitColour(col:Number, lightStrength:Number):NumberCalculate 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.
Parameterscol:Number |
|
lightStrength:Number |
Number |