Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

brainprep.utils.color.print_color

brainprep.utils.color.print_color(category, text)[source]

Print text.

Parameters:
category: str

a category to select the preconfigured color.

text: str

text to print.

Raises:
ValueError

If an invalid category is used.