Created
October 10, 2011 15:25
-
-
Save eiszfuchs/1275597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var alpha:Number = 0.5; | |
var bitmap1:BitmapData = new BitmapData(100, 100, true, 0xffff0000); | |
var bitmap2:BitmapData = new BitmapData(100, 100, true, 0xff0000bb); | |
// draw with transparency | |
var transform:ColorTransform = new ColorTransform(1, 1, 1, alpha); | |
bitmap1.draw(bitmap2, null, transform); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment