I'm drawing a path in Flex using Spark:Path.
I want to subtract a circle shape from this path, as in the following image:
(The path is black and wide)
Any ideas?
I tried creating a mask using a Shape object but couldn't quite manage to create a mask that has a circular hole in it.
Found it.
No masks involved.
I took the
Path
and wrapped aGroup
around it:I set the
blendMode
to "layer" and added an ellipse after the path with blendModeerase
You don't need to use a mask for this, just use the
curveTo()
method of the Graphics class:Which gives you:
This is obviously not using your exact dimensions, but demonstrates the principle.