def chromakey (source,bg): # source should have something in front of blue # bg is the new background for x in range(0, getWidth(source )): for y in range(0, getHeight(source )): p = getPixel(source ,x,y) # if red + blue < green if (getRed(p) + 10 < getGreen(p)): setColor(p,getColor(getPixel(bg ,x,y))) return source def writeTempPic(picture): file=r"C:\Documents and Settings\galanos\Desktop\PythonMediaCompWork\riaOnMoon.jpg" writePictureTo(picture, file)