# Recipe 15: Creating a negative

def negative(picture):
  for p in getPixels(picture):
    red=getRed(p)
    green=getGreen(p)
    blue=getBlue(p)
    negColor=makeColor(255-red, 255-green, 255-blue)
    setColor(p, negColor)

