Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def changeBrightness(pic):
- show(pic)
- x=requestInteger('Percentuale di luminosità')
- for p in getPixels(pic):
- r=getRed(p)+(getRed(p)*x/100)
- g=getGreen(p)+(getGreen(p)*x/100)
- b=getBlue(p)+(getBlue(p)*x/100)
- newColor=makeColor(r,g,b)
- setColor(p, newColor)
- repaint(pic)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement