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

Random hash #48

Closed
dfdgsdfg opened this issue Mar 5, 2020 · 2 comments
Closed

Random hash #48

dfdgsdfg opened this issue Mar 5, 2020 · 2 comments
Labels
question Further information is requested

Comments

@dfdgsdfg
Copy link

dfdgsdfg commented Mar 5, 2020

Can I have random hash not from image?

It can be useful from null or default case.

@DagAgren
Copy link
Collaborator

DagAgren commented Mar 6, 2020

I have been experimenting with things in the Swift BlurHashKit project. Check out https://github.com/woltapp/blurhash/blob/master/Swift/BlurHashKit/Generation.swift for instance.

You could even just try using random AC components (probably with decreasing amplitude or something).

@jerry-git jerry-git added the question Further information is requested label Jun 10, 2022
@StoneyEagle
Copy link

I took some of the source code and created a typescript function that suits my needs.
Works best with a 2x2.
https://gist.github.com/StoneyEagle/8a773f4ec60339bc59376476f1fe6b61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants