# Color question

**URL:** https://forum.kirupa.com/t/color-question/316561
**Category:** Uncategorized
**Created:** [November 25, 2010, 5:39pm UTC](https://forum.kirupa.com/t/color-question/316561 "2010-11-25T17:39:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Esseti](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@Esseti](https://forum.kirupa.com/u/Esseti)
#### Post date: [November 25, 2010, 5:39pm UTC](https://forum.kirupa.com/t/color-question/316561/1 "2010-11-25T17:39:25Z")

</div>

How to substract .1 alpha from a hex color? For example:

```auto
var color:uint = 0xffff0000; // 100% opaque red
var fade:Number = .1; // fade 10% alpha

while (?) {// conditional to check if the alpha is grater than 0
color -= ? // some code to substract 'fade' from the alpha of the 'color'
}

```
