# Is flash able to blend colors?

**URL:** <https://forum.kirupa.com/t/is-flash-able-to-blend-colors/81697>\
**Category:** flash\
**Created:** [March 4, 2005, 6:15am UTC](https://forum.kirupa.com/t/is-flash-able-to-blend-colors/81697 "2005-03-04T06:15:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)\
**Post date:** [March 4, 2005, 6:15am UTC](https://forum.kirupa.com/t/is-flash-able-to-blend-colors/81697/1 "2005-03-04T06:15:17Z")

</div>

Hi,

I am using flashes draw function to make squares of different colors like this:

beginFill(colorCode[colorCounterArray], 10);  
moveTo (10,10)  
lineTo (20,10)  
lineTo(20,20)  
lineTo(10,20)  
lineTo(10,10)   
endFill();

As these squares begin to build on top of each other, the colors bleed together but I need them to blend like paints or light does depending on your choice. Here is an example of light blending, as I would like flash to do:

[http://www.thetech.org/exhibits/online/color/light/magenta.html](http://www.thetech.org/exhibits/online/color/light/magenta.html)

See how red and blue make magenta. When I make two boxes in flash, one red and the other blue, and put them together I do not get magenta, and to make it worse, I get two different colors depending on which color is on top.

Is there a way to blend colors in flash so red and blue make magenta etc …?
