qrohlf / trianglify

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

Rendering with limited radius #63

Closed lapsio closed 8 years ago

lapsio commented 8 years ago

Is it possible to render angular shape instead of cropped rectangular canvas? I mean I'd like to render something like angular rectangle with shattered edges on transparent background not perfect rectangle. If it's not exposed but relatively quick patch I could probably patch it locally bc I'm a bit in rush.

qrohlf commented 8 years ago

Trianglify doesn't clip the bounds of the shapes it generates, it just sets the SVG bounds to mask them. If you render as SVG and manually adjust the viewBox so that the whole graphic is visible, you should be able to get an angular blob as output.

lapsio commented 8 years ago

Thank you :)