- qspec.print_colored ( specifier , * values , returned = False , ** kwargs )[source]
Print with the specified color.
- Parameters:
-
- specifierstr
str of the color name defined in the COLORS class or an RGB-value (0-255, 0-255, 0-255).
- valuesobject
The values to print.
- returnedbool
Return the str instead of printing it.
- kwargsNone
See print().
- Returns:
-
- outstr | None
The colored
valuesifreturned == TrueelseNone.