I am currently writing a color palette generator in Python. I would like to be able to input a Mode as an argument that will produce a specific type of color scheme. Like COMPLEMENTARY or PASTEL etc.
I have seen functions like colorMode(HSB) vs. colorMode(RGB) where one of the arguments is a "Mode". I have seen this many times before, they usually are all caps and the IDE usually color codes them in some way. How are these Modes usually stored within the function? Are they color coded because they are some kind of class? Or are they stored as a string or number?
Sorry if a question like this already exists, I just have no idea what type of jargon to use to describe this scenario.