Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Combine SVG using union, intersection and difference?

ANSWERED

I want to create some custom shapes that combine other shapes, like e.g. a lemon shape. I was thinking of just creating a mask that was the intersection of two circles partly overlapping. However, I have not found a way of doing this. What is the recommended way of creating a slightly more complex SVG graphic than the standard figures supported out-of-box?

 

uH6cL

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I generally found masks to work, but they do have some quirks. I did a fairly extensive exploration here. I think that some/all of those issues have been addressed in newer devices.

You can create compound elements (like your Union) using template symbols. Those can also be used as wrappers for other graphical components that include multiple elements (including masks).

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
2 REPLIES 2

I generally found masks to work, but they do have some quirks. I did a fairly extensive exploration here. I think that some/all of those issues have been addressed in newer devices.

You can create compound elements (like your Union) using template symbols. Those can also be used as wrappers for other graphical components that include multiple elements (including masks).

Peter McLennan
Gondwana Software
Best Answer

The weird behavior you are mentioning on your GitHub is exactly what I am experiencing too - the black mask showing outside the figure I'm trying to mask. I'm working on a Versa 3, so it doesn't really help me if the issues have been fixed on newer models. I guess I'll create the shapes as PNG for now.

Best Answer