def mirror(pic): pxl=getPixels(pic) w=getWidth(pic) h=getHeight (pic) for x in range (1,w): for y in range (1,h/2): clr=getColor(getPixel(pic,x,y)) newPxl=getPixel(pic,x,h-y) setColor(newPxl,clr) def chromakey(bg): bgH=getHeight(bg) bgW=getWidth(bg) greenPic=makePicture(pickAFile()) # xoff=requestInteger("X offset") # yoff=requestInteger("Y offset") for p in getPixels(greenPic): r =getRed( p ) g =getGreen( p ) b =getBlue( p ) if (r + b > g): #if its NOT green x=getX(p) y=getY(p) # if (y+yoff