Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

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 values if returned == True else None.

API navigation