glenzli / paperjs-offset

An offset function for paperjs path
MIT License
93 stars 18 forks source link

Performing boolean operation on the Stroke? #3

Open elebumm opened 5 years ago

elebumm commented 5 years ago

I am attempting to use the offset to subtract the stroke from a rectangle but am unable to do this. Are boolean operations available?

ceremcem commented 5 years ago

AFAIK It's not possible because this library does not convert polyline to polygon and such a boolean operation needs polygon: https://groups.google.com/forum/#!topic/paperjs/AGaw43KpJzE

ceremcem commented 9 months ago

Here is your fiddle that shows the PaperOffset.offsetStroke() usage: https://jsfiddle.net/ceremcem/yLzc1a49/30/