Mixing colors | Add 10 percent of one color to another | ActionScript 3.0 AS3

If you want to add one color to another and then set a movie clip to that tint I have provided the function below. The idea is to sort of mix colors in the way paint is mixed here is how you do it:
Check out the RGB class here:
[converting RGB to 6 digit hexadecimal format.](http://www.actionscript-flash-guru.com/blog/36-uint-to-6-digit-rgb-hex-actionscript-30-as3)

layerToTint.transform.colorTransform has to initialized to some color before this will work.


comments powered by Disqus