Simplify boolean operations example code a bit.

This commit is contained in:
Jürg Lehni 2015-01-04 22:00:40 +01:00
parent 7e80e19e32
commit da53bfe5a0

View file

@ -26,18 +26,18 @@
var inner = new Path.Circle({
center: view.center,
radius: 100,
insert: false
parent: originals,
fillColor: 'white'
});
var outer = new Path.Circle({
center: view.center,
radius: 140,
insert: false
parent: originals,
fillColor: 'white'
});
var ring = outer.subtract(inner);
ring.parent = originals;
ring.fillColor = 'white';
var operations = ['unite', 'intersect', 'subtract', 'exclude', 'divide'];
var colors = ['red', 'green', 'blue', 'black'];