Applying a filter to solid fill

I would like to blur a shape object filled with solid color.  My code looks like this:

local shape = display.newRoundedRect( sceneGroup, 0, 0, myW, myH, 10 ) local paint = { 0.3 } shape.fill = paint shape.fill.effect = "filter.blur" 

This is producing no visible change in the display object.  Am I doing something wrong or can these filters just not be applied to solid fills?  Appreciate any help. Thanks.

Blurring a solid color won’t have a visible effect to the filled area of the object.

Are you trying to create soft edges?

Yes, I’m making objects for drop shadows.  Maybe there’s a better way?  I don’t want to use image files if I can avoid it.

Blurring a solid color won’t have a visible effect to the filled area of the object.

Are you trying to create soft edges?

Yes, I’m making objects for drop shadows.  Maybe there’s a better way?  I don’t want to use image files if I can avoid it.

I think the correct solution is to add the DisplayObject a rounded rectangle in this example) with any paint-like fills to a SnapshotGroup and apply the blur effect to the snapshot.  Incidentally, this is also how image effects can be applied to TextObjects.

I think the correct solution is to add the DisplayObject a rounded rectangle in this example) with any paint-like fills to a SnapshotGroup and apply the blur effect to the snapshot.  Incidentally, this is also how image effects can be applied to TextObjects.