The function I wrote is meant to turn every pixel in a given image black:
function setBlack(pixel) { pixel.setRed(0) pixel.setBlue(0) pixel.setGreen(0