1

I'm trying to take a heart icon and cut it in half with a zig zag or lightning shaped pattern so it looks like this broken heart.

enter image description here

2 Answers 2

1

Here is my solution:
We have heart icon (I just downloaded it from https://thenounproject.com/)
enter image description here


Modify icon that corner points placed exact on pixel grid intersections it will help us later. Place rulers on this points: enter image description here enter image description here enter image description here


Place rectangle on one half of the heart.
enter image description here


Choose rect and select Edit by pressing button on toolbar. Add two point exact on rulers intersections, it will snap automatically. These point should be in Straight mode.
enter image description here


In Edit mode add point that will represent zig zag. All points should be Straight.
enter image description here


Group heart and rect shapes into group, duplicate group and rename them Left and Right.
enter image description here


Temporarily hide Right group by pressing the eye icon. Select rect and heart icons in Left group and press Substract button on toolbar. Now you have left half of broken heart :)
enter image description here


Select left group press Rotate button on toolbar place rotation point exact on lower rulers intersections. Then rotate left half by for instance 5 degree using mouse
enter image description here


Hide Left group, then select right rect and heart shape and press Intersect button on toolbar, now we have right half of the heart
enter image description here


Select right half, press Rotate button, move rotation point to lower rulers intersections and rotate by moouse for -5 degree.
enter image description here


Unhide left half, and final result is:
enter image description here


Download Sketch file

1

I don't use a Mac so have no access to Sketch, but most vector editors work in a similar way.

In the documentation for Sketch I see that it says you can use boolean operations.

Here's a quote from the page here

Boolean Operations

When the shape you need is not among the standard shapes you will have to create it yourself. The first impulse might be to to use Vector tool and draw the shape from scratch. However you will find that many times, a complex shape is easy to break down into the basic shapes. With boolean operations you can do exactly that; combine basic shapes to create more complex ones.

And it lists the operations in a diagram

enter image description here

So you could easily draw the heart shape, and draw the zig zag shape with the Vector Tool (sometimes called the Pen tool in other applications) to overlap the heart, then select both and apply the Subtract boolean operation.

Here's a similar drawing, but in Inkscape - the similar boolean operation is called Difference in Inkscape; the idea is the same. The same is also possible in Adobe Illustrator with Minus Front, in the Pathfinder.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.