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

Color option isn't documented? #33

Open
hasn0life opened this issue Dec 18, 2021 · 5 comments
Open

Color option isn't documented? #33

hasn0life opened this issue Dec 18, 2021 · 5 comments
Labels
difference Mentions difference between Processing and Racket documentation Improvements or additions to documentation

Comments

@hasn0life
Copy link
Contributor

It seems like you can use color names like "white" in addition to all the other color options. This is shown in places like the documentation for ellipse-mode, but it doesn't seem to be documented in places like fill in the arguments list.

Additionally, I can't find a list of color names I can use as arguments, so if there's such a list consider linking it in the reference for color, fill and other places where color names are valid arguments,

@soegaard
Copy link
Owner

The list of accepted color names are here.

https://docs.racket-lang.org/draw/color-database___.html

I'll revise the documentation.

@hasn0life
Copy link
Contributor Author

Thank you!

@soegaard
Copy link
Owner

For now the color names are mentioned in the start of the color section of the reference manual.

@hasn0life
Copy link
Contributor Author

Alright cool. If you would like, I can do further updates to the documentation to add the color names parameter to all the relevant functions, or I can just close this issue if you don't think that's worthwhile.

@soegaard
Copy link
Owner

Thanks for the offer. I think it is worth while mentioning that color names as strings are accepted.
For the actual list of colors, I think it is better to link to the Racket documentation.
If - for some reason - the list of colors is updated, it is better to have the list in only place only.

@soegaard soegaard added difference Mentions difference between Processing and Racket documentation Improvements or additions to documentation labels Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difference Mentions difference between Processing and Racket documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants