Cardioid animation

Inspired by a YouTube video.

Link. Source code.