# Color at 80% + 0x00FFF at 20%

**URL:** https://forum.kirupa.com/t/color-at-80-0x00fff-at-20/204245
**Category:** flash
**Created:** [October 18, 2006, 11:04am UTC](https://forum.kirupa.com/t/color-at-80-0x00fff-at-20/204245 "2006-10-18T11:04:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shawn\_gibson](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@shawn\_gibson](https://forum.kirupa.com/u/shawn_gibson)
#### Post date: [October 18, 2006, 11:04am UTC](https://forum.kirupa.com/t/color-at-80-0x00fff-at-20/204245/1 "2006-10-18T11:04:46Z")

</div>

Hi There,

Is it possible, if I have a colour, i.e., 0x00DD11, to modify it by taking that number to be 80% of a mix and the color 0x00FFFF (for example) to be 20% of the mix, and generate the new number (i.e., it would be 0xXXXX)…so I can use it to pass into variables I have for setting colours?

In other words how can I say something like:

NewColour=(currentColour-(20/100))+(blueColour+(20/100))

where blueColour=“0x00FFFF”…and currentColour=ANY 0xXXXXXX colour string…

Or something like that…

Thanks for any help,  
Shawn
