anvaka / streamlines

Streamlines calculator
https://anvaka.github.io/streamlines/
MIT License
293 stars 27 forks source link

Added 'forwardOnly' param, 'seed' can be an array of seed points #4

Closed Stanko closed 4 years ago

Stanko commented 4 years ago

Hey, for my own use, I added forwardOnly param and enabled that seed param accepts array of seed points. This was super useful to me while I was working on generative art pieces. If you thing it makes sense for it to be the part of the library, let me know and I'll clean up the PR and add documentation.

Maybe forwardOnly should be renamed to direction and accept enum values (FORWARD, BACK and BOTH).

Once again, thank you for the awesome work!

Cheers!

P.S. I totally understand if you feel like this shouldn't be the part of the library.

anvaka commented 4 years ago

This is very well worth the PR, @Stanko! Do you want to clean up it a bit:

I would happy to merge this in! Thank you for contributing!

Stanko commented 4 years ago

Happy to help! I updated the readme and removed the logs. Let me know if you want me to make more changes.

Cheers!

anvaka commented 4 years ago

Perfect! Published as v1.2.0.

Thank you!