Gradient Mask Brain

game

This example uses the BitmapData class and alpha channels within it to create an alpha mask revealing an image of a brain beneath an image of a human head providing an x-ray effect.

Note: Gradient masks can also be achieved without the BitmapData class if you use runtime bitmap caching for both the mask and the maskee and apply the mask using setMask.

Developer: Trevor McCauley
Language: en