I think you are supposed to add the colors then divide by two to keep the brightness constant.
This is not how light behaves (it doesn't divide by two on a wall), but it's what you need to make a gradient.
This is not how light behaves (it doesn't divide by two on a wall), but it's what you need to make a gradient.