qrohlf / trianglify

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

parse number opts accordingly if passed as string #55

Closed kaizensoze closed 8 years ago

kaizensoze commented 8 years ago

Fix issue in which passing in number opts (width, height, cell_size, etc.) as string leads to unresponsive script.

Resolves #35

qrohlf commented 8 years ago

Duplicate of https://github.com/qrohlf/trianglify/issues/35 - the script encountering errors if you pass the wrong type of object in as an argument is expected behavior, though the error handling could be improved to throw helpful errors and exit instead of hanging.