Simply putting a heart shaped cut-out in front of the lens

turns this

into this

How does that happen? What's the optics behind this phenomenon?
Simply putting a heart shaped cut-out in front of the lens

turns this

into this

How does that happen? What's the optics behind this phenomenon?