Sometimes it is convenient to construct a color from an opacity rather than an alpha value. Fixes https://github.com/flutter/flutter/issues/5205