qspec logo qspec 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. get_rgb_print_command  (  r ,  g ,  b  )[source]

The ANSI escape sequence to print text with an RGB color in the console.

Parameters:
rint_like

The red value (0-255).

gint_like

The green value (0-255).

bint_like

The blue value (0-255).

Returns:
commandstr

The escape sequence.