Show HN: Ruby code and tools for animating Voronoi diagrams
github.com
github.com
I've spent some of my extra time during the last year making visualization-heavy videos about Ruby, graphics, and sound. This is some of the code I wrote for that series, and will feature Voronoi diagrams in my next video. More about that infrequently but diligently released series here: https://blog.mikebourgeous.com/2021/03/10/why-cant-we-use-ru...
Day 1 features the chunky_png Gem - Turn Pixelated Billie Eilish and Lady Gaga Portraits into True 24x24 Pixel Art, see https://planetruby.github.io/gems/pixel/01-chunky-png
The DSL I created was kind of an accident, and people should use Sonic Pi if they want something "serious" and supported. I'm more focused on writing code that illuminates some algorithms I think are interesting (some not polished/released yet), and that the average Rubyist can read. I think there's room for both, and I think most people looking to use a Ruby DSL for music will want to use Sonic Pi.
Hopefully what I'm doing provides a somewhat unique extra angle to help people learn about sound and Ruby, or at least makes some cool graphics that are fun to look at. There's a lot of great code and content out there, but I'm hoping I can bridge some of these concepts together in a way that hasn't quite been done before.
Increasingly it's only a short hop from experiment/play to use in production in many ways, especially when it comes to viz.
Are there any public examples of those hexagons being used in practice? I spent a minute or two clicking around the SpeciesFileGroup/taxonworks site but didn't run into any hexagons.
I should update the images on the repo with some more demos. There are some nice ways to order the hexes by simple Ruby sorts, different layouts, etc. You can get spiral layouts with complete records to the center, etc. I have used it as a toy library to play with quilt (fabric) prototyping for my sig other too, less flashy, but fun.