Thanks Jürg. If I understand this correctly, I can reveal parts of an
Item by creating a clipMask on top of it. The thing is, I want to do
both: make parts of an item disappear (let's call it item A) and
reveal parts of another item underneath it (item B). Think of a wall
with two layers of wallpaper: I erase parts of the top layer only to
reveal the wallpaper underneath it. Can this be done with the methods
that are already availably in paper.js?
One idea: three items on top of each other.
–– invisible copy of item B
–– item A (gets "erased")
–– item B
Instead of erasing parts of item A I use clipMask to reveal the
invisible copy of item B. It covers up parts of item A and makes it
look like parts of item B are revealed underneath item A.
Hope this makes sense.
On 20 Sep., 10:22, Jürg Lehni <
li...@scratchdisk.com> wrote:
> In this case you should be able to work with clipMasks:
>
>
http://paperjs.org/reference/group#clippedhttp://paperjs.org/reference/item#clipmask