Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def switchRedBlue(pict,k):
- # @param pict: Picture
- # @param k: int
- for p in getPixels(pict):
- x = getX(p)
- if x < k:
- oRed = getRed(p)
- oBlue = getBlue(p)
- setRed(p,oBlue)
- setBlue(p,oRed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement