What library are you using? This can be easily accomplished in pygame. google something like 'pygame image fade'
i am using JES, its not that i need to use the program, i just need to make it. this is what i have so far. i got stuck at the for statements.
showInformation( "Pick two pictures of the same size." )
pic1= makePicture( pickAFile() )
pic2= makePicture( pickAFile() )
w=getWidth( pic1 )
h=getHeight( pic1 )
assert w == getWidth( pic2 )
assert h == getHeight( pic2 )
newPic= makeEmptyPicture( w,h )
printNow( "working..." )
for x in range (0,w) :
for y in range (0,w) :
px1= getPixel( pic1, x, y )
px2= getPixel( pic2, x, y )
pxNew= getPixel( newPic, x, y )
printNow( "...done" )
show( newPic )
I am doing the same exact thing in JES and am having trouble as well. here is what I got so far. . .
if h != h2 and w != w2:
showInformation("The pictures are not the same size")
newPic= makeEmptyPicture(w, h, white)
for x in range(0, h):
for y in range(0, y):