User Profile
Collapse
-
the code supposed to open an image with pixelated effect. Yep the code has error when i load it . -
-
Pixelation Program... trying to pixelate an image in Jython
...Code:def pixalated(): myFile = pickAFile() myPicture=makePicture(myFile) n=requestInteger("Please enter an (integer) for pixelation") width = getWidth(myPicture) height = getHeight(myPicture) canvas = makeEmptyPicture(width,height) for x in range(0,width,n): red = 0 blue = 0 green = 0 for y in range(0,height,n): red = getRed(myPicture)Last edited by bvdet; Apr 29 '13, 02:54 PM. Reason: Please use code tags when posting code [code]....[/code]
No activity results to display
Show More
Leave a comment: