# \[AS2\] Bitmapdata pixel alpha

**URL:** https://forum.kirupa.com/t/as2-bitmapdata-pixel-alpha/312250
**Category:** Uncategorized
**Created:** [July 29, 2010, 4:28am UTC](https://forum.kirupa.com/t/as2-bitmapdata-pixel-alpha/312250 "2010-07-29T04:28:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Amzipotatosheep](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Amzipotatosheep](https://forum.kirupa.com/u/Amzipotatosheep)
#### Post date: [July 29, 2010, 4:28am UTC](https://forum.kirupa.com/t/as2-bitmapdata-pixel-alpha/312250/1 "2010-07-29T04:28:02Z")

</div>

Hi all, I’m currently working on a particle system that uses bitmapdata. So far, it’s been working well except for one thing: I can’t figure out how to make the particles fade out.

Basically what I want to be able to do is apply transparency between 0 and 100 percent to a specific pixel of a bitmapdata. Either that, or make the color I have the particle set to blend with the background color. As in, take 70% the particle color and 30% the background color and mix them together, then apply that color to a pixel in the bitmapdata.

Thanks in advance for any help!
