'''
Created on Sep 4, 2013

@author: YOUR NAME HERE
'''
import ImageUtils

'''
During this lab a pixel is a tuple of 3 values (R, G, B)
representing the red, green, and blue components of a color
that each range from [0-255] inclusive. 
The filter functions:
    - take one pixel as an argument,
    - modify the channels of the pixel and
    - return the transformed pixel
'''
def identity (color):
    '''
    returns an integer color that is unchanged from the original
    '''
    # This is an example
    return color


def grayScale (r, g, b):
    '''
    returns an integer color whose value is the average of the given 
    red, green, and blue values 
    '''
    # TODO: replace "pass" with your code below
    pass


def invert (color):
    '''
    returns an integer color that is the reverse of its current value,
    i.e., 255 minus its value
    '''
    # TODO: replace "pass" with your code below
    pass


def darken (color):
    """
    returns an integer color whose value is 90% of its original value,
    but not less than the minimum value, 0
    """
    # TODO: replace "pass" with your code below
    pass

  
def brighten (color):
    """
    returns an integer color whose value is 110% of its original value,
    but not more than the maximum value, 255
    """
    # TODO: replace "pass" with your code below
    pass


def solarize (color):
    """
    returns an integer color whose value is determined as follows:
     - if the value is less than 128, invert it
     - if the value is 128 or greater, don't change it.
    """
    # TODO: replace "pass" with your code below
    pass



# file names to change
inputFile = "duke_logo.png"
image = ImageUtils.showTransformedImage(inputFile, identity)
