We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
currently we can use
rand.Seed(seed)
to set an seed for a HappyPalette. Go says:
rand.Seed is deprecated ...... should use New(NewSource(seed))
At the moment it doesn't matter as long as there is still the possibility. I think something like that would be practical:
colorful.FastHappyPalette(3) // with custom seed: colorful.FastHappyPaletteWithRand(3, rand.New(rand.NewSource(seed)))
The text was updated successfully, but these errors were encountered:
Fair enough. I would accept a PR for this.
Sorry, something went wrong.
@makew0rld i created a pull request for this: #73
Successfully merging a pull request may close this issue.
currently we can use
to set an seed for a HappyPalette.
Go says:
At the moment it doesn't matter as long as there is still the possibility.
I think something like that would be practical:
The text was updated successfully, but these errors were encountered: