qrohlf / trianglify

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

Omit adding attributes if they don't contribute anything. #18

Closed erikdahlstrom closed 10 years ago

erikdahlstrom commented 10 years ago

Makes the generated svg markup somewhat less verbose.

qrohlf commented 10 years ago

Thanks for this. Definitely a good idea to keep the generated SVG as minimal as possible, I should have probably caught this when fillOpacity and strokeOpacity were introduced.