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

Fix getRandomColor so it returns ColorRGBA #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

haisongdong-harrison
Copy link

@haisongdong-harrison haisongdong-harrison commented Nov 22, 2017

getRandomColor() is described as a function that returns a ColorRGBA color rather than a color name.

This pull request fixed the problem and moved the color name list to the class, so it does not need to be constructed every time the getRandomColor() is called.

Since now getRandomColor returns a ColorRGBA type properly, for ease of use (e.g. call getRandomColor() directly in any publish marker functions, like what the demo.py demonstrates in random color cylinder method 1), getColor() now handles ColorRGBA type as well.

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.

1 participant