This quote is suggesting that it is an art form to live with pain. To cope with pain and suffering, you need to try to find a balance between accepting pain and joy. This is like mixing light and dark together to create shades of gray. Gray is a neutral color that symbolizes balance and integration. So this quote is saying that living with pain and trying to be happy at the same time is a difficult, but necessary, skill to learn.