SHARE
TWEET

Untitled

a guest Oct 18th, 2012 81 Never
  1. def mirrorHorizontal(picture):
  2.   height = getHeight(picture)/2
  3.   for x in range(0, getWidth(picture)):
  4.     for y in range(0, height):
  5.       topPixel = getPixel(picture, x, y)
  6.       bottomPixel = getPixel(picture, x, height - y - 1)
  7.       color = getColor(bottomPixel)
  8.       setColor(topPixel, color)
  9.       color = getColor(topPixel)
  10.       setColor(bottomPixel, color)
RAW Paste Data
Top