@classmethod
def enhanced(cls, r, g, b, ratio):
    """Enhanced color by 'ratio', allows to brighten/darken colors"""
    f, lm = (min, 255) if ratio > 1 else (max, 0)
    if ratio > 1:
        r = max(8, r)
        g = max(8, g)
        b = max(8, b)
    return f(lm, int(round(r * ratio))), f(lm, int(round(g * ratio))), f(lm,
        int(round(b * ratio)))
