Can I do boolean operation for PShape in processing?

Such as subtract, divide, union…

The following effect is what I want,

but this library is for javascript:

You can look at PShape GROUP and contour