- qspec. print_colored ( specifier , *values , returned=False , **kwargs )[source]
-
Print with the specified color.
- Parameters:
-
- specifierstr
The name of a color defined in
COLORSor an RGB value(0-255, 0-255, 0-255).- valuesobject
The values to print.
- returnedbool
Whether to return the colored
strinstead of printing it.- kwargs
Additional keyword arguments are passed to
print.
- Returns:
-
- sstr | None
The colored
valuesifreturnedisTrue, elseNone.