Skip to content

Instantly share code, notes, and snippets.

@eiszfuchs
Created October 10, 2011 15:25
Show Gist options
  • Save eiszfuchs/1275597 to your computer and use it in GitHub Desktop.
Save eiszfuchs/1275597 to your computer and use it in GitHub Desktop.
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