athletics67
11/11/2018 - 7:09 PM

mirrorHrz2.py

#Horizontal mirror of image (bottom to top)
def mirrorHrz2():
  pic = getPic()
  for x in range(0, getWidth(pic)):
    for y in range(getHeight(pic)/2, getHeight(pic)):
      color = getColor(getPixel(pic, x, y))
      setColor(getPixel(pic, x, getHeight(pic)-y-1),color)
  show(pic)