Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify interface #20

Closed
semibran opened this issue Mar 13, 2018 · 1 comment
Closed

simplify interface #20

semibran opened this issue Mar 13, 2018 · 1 comment

Comments

@semibran
Copy link

hey, love what this module is doing. I was thinking it could be simplified further by using the following function signature:

simplex(random)(x[, y, z, w]) -> noise

The result would use currying to accept a function with the same random() -> percent signature as Math.random, then the user would be able to call a 1D, 2D, 3D, or 4D variation of the function which would be selected based on the number of arguments supplied.

Also addresses #16 by definition.

@jwagner
Copy link
Owner

jwagner commented Mar 14, 2018

See #21

@jwagner jwagner closed this as completed Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants