sketching icon indicating copy to clipboard operation
sketching copied to clipboard

Color option isn't documented?

Open hasn0life opened this issue 3 years ago • 5 comments

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,

hasn0life avatar Dec 18 '21 23:12 hasn0life

The list of accepted color names are here.

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

I'll revise the documentation.

soegaard avatar Dec 19 '21 16:12 soegaard

Thank you!

hasn0life avatar Dec 20 '21 05:12 hasn0life

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

soegaard avatar Dec 31 '21 15:12 soegaard

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.

hasn0life avatar Jan 04 '22 06:01 hasn0life

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 avatar Jan 11 '22 22:01 soegaard