Right now I can do what I want without it up to a point, I can fill a path with an image for example but the image is not anti-aliased, e.x.: http://jsbin.com/udarip/1
With globalCompositeOperation in regular canvas I can crop an image with a path and have it be anti-aliased like so: http://jsbin.com/akisah/3
But so far I haven't been able to combine globalCompositeOperation with Paper.js, is there an easy way to do this or do I need to hack Paper.js to accomplish this at the moment?
Brynjar Harðarson
unread,
Mar 9, 2013, 9:20:40 AM3/9/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pap...@googlegroups.com
Oh and I should perhaps mention that Paper.js does anti-alias when path cropping / clipping in most browsers, but not in Chrome, if I remember correctly, and I need it to do so in all browser, hence the need for globalCompositeOperation
Eskel
unread,
Oct 24, 2013, 12:35:08 PM10/24/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pap...@googlegroups.com
Hi, I'm looking for a solution for exactly the same problem. Have you figured out something?
I'd love to hear from the authors of the library. Is there a way to contact them about the issue?
Jürg Lehni
unread,
Oct 26, 2013, 11:05:31 AM10/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pap...@googlegroups.com
globalCompositeOperation is supported on an item level through the Item#blendMode property:
Note that clipping in paper.js is implemented differently, on a vector-graphics level, using the Context#clip() command.
If Chrome's Skia library implements vector clipping without aliasing, then that's not our fault, it's Chrome not following the specs fully, I'd imagine. You would have to submit a bug report over at https://code.google.com/p/chromium/issues/entry
Best,
Jürg
> --
> You received this message because you are subscribed to the Google Groups "Paper.js" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.