Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Apr 20th, 2018 93 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top