mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Simplify boolean operations example code a bit.
This commit is contained in:
parent
7e80e19e32
commit
da53bfe5a0
1 changed files with 4 additions and 4 deletions
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue