Any suggestions/implementation strategies for irregular x/y matrices?

Any suggestions/implementation strategies for irregular x/y matrices? I have an array of APA102s shaped like a heart and I’d like to address it as a “masked” grid.

https://plus.google.com/+GarrettMace/posts/HKsZNY7avkG
https://macetech.github.io/FastLED-XY-Map-Generator/

Perfect, thanks!

Would love to see your heart when you get it going.

http://www.elec-tron.org/?page_id=1351

Here’s code for the heart shaped matrix I made last year https://github.com/LmnoZ/BrightTop?files=1