"getPixel(picture,x,y): y (= 450) is less than 0 or bigger than the height (= 449)
The error was:
Inappropriate argument value (of correct type).
An error occurred attempting to pass an argument to a function.
Please check line 82 of C:\Users\owner\extra"
I'm not sure what is wrong with the code. I'm assuming its a syntax error, or perhaps i'm missing something. if you immediately notice anything in the code that would cause this error, let me know.
def smaller(image): target=makeEmptyPicture(1000,1000) sourceX=0 sourceY=0 for a in range(0,getWidth(image)): for b in range(0,getHeight(image)): color=getColor(getPixel(image,sourceX,sourceY)) setColor(getPixel(target,a,B)/>,color) sourceX= sourceX + 2 sourceY= sourceY + 2 show(image) show(target) return
This post has been edited by Simown: 27 November 2011 - 07:59 PM
Reason for edit:: Added code tags. Please use code tags in future.