qrohlf / trianglify

Algorithmically generated triangle art
http://qrohlf.com/trianglify/
GNU General Public License v3.0
10.08k stars 669 forks source link

Generating Honeycombs instead of triangles #96

Closed AndyHeinz closed 5 years ago

AndyHeinz commented 6 years ago

Hi, is it possible to do a "honeycomb" version of trianglify? Which uses honeycombs of one specific size, instead of randomly sized triangles?

Thanks!

qrohlf commented 6 years ago

Right now, all of the rendering code and data structures set up for only 3 vertices, which is something I don't think makes sense to change for Trianglify.

That said, if you know JavaScript it would be pretty easy to whip up a one-off fork of Trianglify that just generates tiled hexagons with the same gradient based color function.