code: def getPixels(self):
          
          array = self.toArray()
          (width, height, depth) = array.size
          for x in range(width):
              for y in range(height):
                  yield Pixel(array, x, y)
docs: Return a stream of pixels from current Canvas.