Closed Beeblerox closed 12 years ago
replace the line: _colorTransform.color = pColor; with following: var colorMultiplier:Float = 0.00392; _colorTransform.redOffset = 0; _colorTransform.greenOffset = 0; _colorTransform.blueOffset = 0; _colorTransform.redMultiplier = (pColor >> 16) * colorMultiplier; _colorTransform.greenMultiplier = (pColor >> 8 & 0xff) * colorMultiplier; _colorTransform.blueMultiplier = (pColor & 0xff) * colorMultiplier;
So it would have the same behavior on flash and cpp targets
replace the line: _colorTransform.color = pColor; with following: var colorMultiplier:Float = 0.00392; _colorTransform.redOffset = 0; _colorTransform.greenOffset = 0; _colorTransform.blueOffset = 0; _colorTransform.redMultiplier = (pColor >> 16) * colorMultiplier; _colorTransform.greenMultiplier = (pColor >> 8 & 0xff) * colorMultiplier; _colorTransform.blueMultiplier = (pColor & 0xff) * colorMultiplier;
So it would have the same behavior on flash and cpp targets