def mirrorVerticalLtoR(): # get the picture file = pickAFile () source = makePicture(file) mirrorpoint = int(getWidth(source)/2) for y in range(1,getHeight(source)): for xOffset in range(1,mirrorpoint): pright = getPixel(source, xOffset+mirrorpoint,y) pleft = getPixel(source, mirrorpoint-xOffset,y) c = getColor(pleft) setColor(pright,c) openPictureTool (source) def mirrorVerticalRtoL(): # get the picture file = pickAFile () source = makePicture(file) mirrorpoint = int(getWidth(source)/2) for y in range(1,getHeight(source)): for xOffset in range(1,mirrorpoint): pright = getPixel(source, xOffset+mirrorpoint,y) pleft = getPixel(source, mirrorpoint-xOffset,y) c = getColor(pright) setColor(pleft,c) openPictureTool (source) def mirrorHorizontal(): # get the picture file = pickAFile () source = makePicture(file) mirrorpoint = int(getHeight(source)/2) for yOffset in range(1,mirrorpoint): for x in range(1,getWidth(source)): pbottom = getPixel(source,x,yOffset+mirrorpoint) ptop = getPixel(source,x,mirrorpoint-yOffset) setColor(pbottom,getColor(ptop)) openPictureTool (source)