Using PointText as a clipping mask?

100 views
Skip to first unread message

Oliver Beattie

unread,
Oct 21, 2011, 5:53:40 AM10/21/11
to pap...@googlegroups.com
Hi,

Is it possible to use a `PointText` object as a clipping mask? I can't get it to work as expected, although it seems to be documented that it should work in theory. When I put it in a Group as the first item, and set group.clipped = true, the result I see is the content which should be clipped is not.

Just wondering if I'm missing something obvious, or whether this is at present unsupported?

Thanks,
Oliver

Jonathan Puckey

unread,
Oct 23, 2011, 4:49:39 AM10/23/11
to pap...@googlegroups.com
Hi Oliver,

This is not supported, you can only use paths for a clipping mask.

greetings,
Jonathan

Oliver Beattie

unread,
Oct 23, 2011, 4:52:13 AM10/23/11
to pap...@googlegroups.com
Hi Jonathan,

Thanks. I've actually already modified Paper.js to support this, so if it's something you'd be interested in including in the core distribution, I'm happy to submit a pull request.

—Oliver

Jonathan Puckey

unread,
Oct 23, 2011, 6:08:44 AM10/23/11
to pap...@googlegroups.com
Hi Oliver,

Please do - thanks!

greetings,
Jonathan
Reply all
Reply to author
Forward
0 new messages