def GammaCorrection(color, gamma=2.8, max=255):
    """
    Perfomes Gamma Correction on a color.

    :param color: The color to perform the gamma correction on.
    :param gamma: The gamma value.
    :param max: Specifies full scale output of the gamma correction.

    :return: Gamma corrected color.
    """
    return [round(max * ((x / 255) ** gamma)) for x in color]