daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Apr 20th, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def lineCompare():
  2.   pict = makePicture(pickAFile())
  3.   K = requestInteger("inserire un valore")
  4.   count = 0
  5.   for y in range(0, getHeight(pict)):
  6.     redTot = 0
  7.     for x in range(0, getWidth(pict)):
  8.       pix = getPixel(pict, x, y)
  9.       redTot = redTot + getRed(pix)
  10.     if redTot == K:
  11.       count = count + 1
  12.       return true
  13.   if count != 0:
  14.     print count
  15.   return false
RAW Paste Data
Top