The idea behind this feature is to fit the top half of the image only (make it darker gradually). Here is what I have, but it looks like it makes the entire upper half solid black.
def fadeDownFromBlack(pic1): w=getWidth(pic1) h=getHeight(pic1) for y in range(0,h/2): for x in range(0,w): px=getPixel(pic1,x,y) setBlue(px,y*(2.0/h)) setRed(px,y*(2.0/h)) setGreen(px,y*(2.0/h))
jython image-manipulation jes fade
roger34
source share