blacs.plugins.progress_bar.black_has_good_contrast

blacs.plugins.progress_bar.black_has_good_contrast(r, g, b)[source]

Return whether black text or white text would have better contrast on a background of the given colour, according to W3C recommendations (see https://www.w3.org/TR/WCAG20/). Return True for black or False for white