I'm just getting going with Processing and want to create a gradient with the individual pixels of an image. I've got it to the point where it's sort of working. The result is close to a gradient but there are inconsistencies as you can see. I think I'm misunderstanding the color datatype or pixel[]. Any help would be great.