Create a javascript function that iterates over every pixel of a canvas element and returns a character based on the pixel's brightness. In your entire response, the letter g should appear less than 22.
user