#This function prooduces a negative.
def negative(picture):
for pixel in getPixels(picture):
r = getRed(pixel)
g = getGreen (pixel)
b = getBlue(pixel)
nucolor = makeColor(255-r, 255-g, 255-b)
setColor (pixel, nucolor)
def negative(picture):
for pixel in getPixels(picture):
r = getRed(pixel)
g = getGreen (pixel)
b = getBlue(pixel)
nucolor = makeColor(255-r, 255-g, 255-b)
setColor (pixel, nucolor)
No comments:
Post a Comment