how to use boolean (union, intersection, etc) with vector object

Just starting out? Need help? Post your questions and find answers here.
LastmanStanding
Posts: 10
Joined: Wed Apr 17, 2019 8:41 am

how to use boolean (union, intersection, etc) with vector object

Post by LastmanStanding »

I know Spiderbasic use paperjs library for vector graphics.
but I can't find functions for manipulate.

Image
(image show 2 vector objects)

I want to create two vector objects (or more) and Union, Intersection, Subtract etc like this.
Image
(top-left: union, top-right: substract
buttom-left: intersection, buttom-right: xor)



can someone advice me please :D

thank you

ps1. this link for example
http://paperjs.org/examples/boolean-operations/

ps2. all image from website >> erraticgenerator.com :)