-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Mention inverse of hex functions in Color
#93218
Conversation
alternatively, the methods could have obviously named synonyms, like "to_hex()" and "from_hex()", but this would mean more code with almost the same usability outcome. |
Color
I would suggest saying "opposite" instead of "inverse". |
sure! other wordings are possible:
it seems different wordings are currently used in the docs: "This method is the opposite of ..." "See also ... which performs the opposite operation." |
You can also use the word "undo" like undo the function. Math has several words that mean almost the same [inverse, reverse, undo, opposite]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no opinion on which is the exact wording of "inverse". I prefer undo, but someone else can pick the "color of the shed".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"This method is the opposite of ..."
String StringName
I wrote a good chunk of these so admittedly there's a general inconsistency around the place.
"Undo" is probably the most uncommon way to refer to this concept, though.
Thanks! |
the naming of methods converting to hex color and from hex color is different.
since finding the inverse is not obvious, it should be mentioned in the docs.