jdna

jdna.utils

misc utilities

Functions

colored(text, hex_color)

Return colored text

colored_background(text, hex_color)

Return colored text

hex_to_color_name(h)

Get closest named color for terminal printing

random_color()

rgb_to_hex(r, g, b)

jdna.utils._colored(text, hex_color, fore_or_back)[source]

Return colored text

jdna.utils.colored(text, hex_color)[source]

Return colored text

jdna.utils.colored_background(text, hex_color)[source]

Return colored text

jdna.utils.hex_to_color_name(h)[source]

Get closest named color for terminal printing