Quiz: Your Own Sunset Effect
An input of -20 might not actually work for you. I made sure that pixels never get negative by using the statement
red = Math.max(0, Math.min(MAX_RED, red + addedRed));
But it's ok if you didn't do the Math.max(0, ...) part. If you did think of negative inputs, pat yourself on the back.