def _is_bright(rgb):
    r, g, b = rgb
    gray = 0.299 * r + 0.587 * g + 0.114 * b
    return gray >= .5
Return whether a RGB color is bright or not.
dataset/ETHPy150Open kwikteam/phy/phy/utils/_color.py/_is_bright