def randomizePic (picture):
for p in getPixels(picture):
red = getRed(p)
green = getGreen(p)
blue = getBlue(p)
setRed(p, red+int(random.random()*100))
setGreen(p, green+int(random.random()*100))
setBlue(p, blue+int(random.random()*100))
for p in getPixels(picture):
red = getRed(p)
green = getGreen(p)
blue = getBlue(p)
setRed(p, red+int(random.random()*100))
setGreen(p, green+int(random.random()*100))
setBlue(p, blue+int(random.random()*100))
No comments:
Post a Comment