block by nitaku 8751669

Boolean operations on 2D shapes

Full Screen

This example shows the results (orange) of performing four different boolean operations (union, difference, xor and intersection) on two 2D shapes (blue). Thanks to the powerful clipper.js library, the computation is performed in client-side Javascript.

The example is almost entirely taken from this clipper.js demo.

index.js

index.html

index.coffee

index.css

index.sass