So I need to set the color at coordinate (x,y) on this image to be the color that's there now, plus the rgb values (0,40,0). I'm not sure how you're suppose to do that... Could someone please help?
Something like this I believe.
Color color = image.getColorAt(x,y);
Color newColor = new Color(color.getRed(), color.getGreen()+40, color.getBlue());
image.setColorAt(x,y,newColor);