<reponame>utv-teaching/foundations-computer-science
# Foundations of Computer Science
# BSc Computer Engineering, University of <NAME>
# Exercise: Implement an image redscale effect.

def redScalePicture(picture):
# @param picture:Picture;
  pixels = getPixels(picture)
  for pixel in pixels:
    setGreen(pixel, 0)
    setBlue(pixel, 0)

def main():
  file = pickAFile()
  picture = makePicture(file)
  redScalePicture(picture)
  repaint(picture)
# Foundations of Computer Science
# BSc Computer Engineering, University of <NAME>
# Exercise: Implement an image redscale effect.

def redScalePicture(picture):
# @param picture:Picture;
  pixels = getPixels(picture)
  for pixel in pixels:
    setGreen(pixel, 0)
    setBlue(pixel, 0)

def main():
  file = pickAFile()
  picture = makePicture(file)
  redScalePicture(picture)
  repaint(picture)
# Foundations of Computer Science # BSc Computer Engineering, University of <NAME> # Exercise: Implement an image redscale effect. # @param picture:Picture;