Subtracting Objects in Objects
ktylee19 opened this issue · 1 comments
ktylee19 commented
You can only subtract an object if it's not completely within another object. (Sorry this is strangely worded--- I've included an example that'll better show you what I'm talking about.
//This works because a small corner of test2 is not within test1.
test1=poly(300,300,4,40);
test2=ellipse(300,310,100);
myTest=test2-test1;
fill(myTest,RED);
//This does not work.
test1=poly(100,100,4,40);
test2=ellipse(100,100,100);
myTest=test2-test1;
fill(myTest,RED);
pixelmaid commented
corrected with update to hole handling