Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def invertRedBlue(pict, k):
- # @param pict: Picture
- # @param k: Int. Tutti i pixel che hanno coordinata x<k avranno le componenti Red e Blue invertite
- for px in getPixels(pict):
- x = getX(px)
- if x < k:
- red = getRed(px)
- blue = getBlue(px)
- setRed(px, blue)
- setBlue(px, red)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement