# Shapes and filters

**URL:** <https://forum.kirupa.com/t/shapes-and-filters/318964>\
**Category:** Uncategorized\
**Created:** [February 4, 2011, 1:57pm UTC](https://forum.kirupa.com/t/shapes-and-filters/318964 "2011-02-04T13:57:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![safra91](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@safra91](https://forum.kirupa.com/u/safra91)\
**Post date:** [February 4, 2011, 1:57pm UTC](https://forum.kirupa.com/t/shapes-and-filters/318964/1 "2011-02-04T13:57:50Z")

</div>

Hi,

I have some code that builds a shape and adds a shadow filter. If I use a single call to make the shape, like drawRect() or drawRoundRect() all looks fine including the shadow.

However, when I do something like:

```auto

shape= new Shape();
shape.graphics.beginFill(0xfffffff, 1); 
shape.drawRect();
shape.drawRoundRect();
shape.drawRoundRect();
etc. etc.
shape.graphics.endFill();

```

The boundaries of these draw calls do overlap each other. The final shape by itself looks fine. But as soon as I add the shadow filter, parts of the shape get transparent. I belief it has to do with the various draw calls within begin and end fill.

Anyone familiar with this and knows what goes wrong and how to solve this?
