I have a class with a variable that should contain a color that will later be used as the color in tcl , and since its value is not displayed to the user as a string, it can contain words or a hexadecimal RGB number (for example, # FF00FF or magenta) .
When I create an object, I want to check that the color is valid. Is there a way to verify that a specific value is a valid color for tcl and tk?
source share