Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def lineCompare():
- pict = makePicture(pickAFile())
- K = requestInteger("inserire un valore")
- count = 0
- for y in range(0, getHeight(pict)):
- redTot = 0
- for x in range(0, getWidth(pict)):
- pix = getPixel(pict, x, y)
- redTot = redTot + getRed(pix)
- if redTot == K:
- count = count + 1
- return true
- if count != 0:
- print count
- return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement