Masking
-
Hi there, I would like to create a pattern, and then mask that pattern with a primitive.
For example, create a field of wiggles. Then mask that pattern with a circle.
Anyone know how I could accomplish that?
-
you can use a
clipPath(path)
to clip a drawing inside a given bezierPath: see http://www.drawbot.com/content/shapes/drawingPath.html#drawBot.clipPath
-
as for the wiggles, there’s a nice tutorial here.
-
thanks @frederik and @gferreira for the helpful hints!