Yeah - I think it'd take some serious chops to construct this from scratch (note: it wasn't me! author: twitter.com/teachwithcode). But I've been having a blast deconstructing the equations.
Here's a fun intermediate step (circles instead of hearts), with a few of the numbers parametrized as sliders: