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

feat(generator): implement fix(?) for issue #4 #5

Merged

Conversation

jalavosus
Copy link
Contributor

@jalavosus jalavosus commented Apr 26, 2022

If both count and colors parameters are passed, but length of
colors is less than count, randomly generate extra colors to satisfy
the desired color count.

Closes #4.

Copy link
Owner

@TimMikeladze TimMikeladze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will merge after conflicts are resolved.

Thank you!

If both `count` and `colors` parameters are passed, but length of
`colors` is less than `count`, randomly generate extra colors to satisfy
the desired color count.
@jalavosus
Copy link
Contributor Author

Thank you! This project is super cool, and you've done an excellent job with it :)

Also, your code is super clean and pleasant to work with, so thanks for that as well.

@TimMikeladze TimMikeladze merged commit 181caa7 into TimMikeladze:master Apr 26, 2022
@jalavosus jalavosus deleted the generator/fill-extra-colors branch April 26, 2022 05:41
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

Successfully merging this pull request may close these issues.

request: randomly generate colors if param count is > number of colors passed to param colors
2 participants