Creates a copy with the given alpha channel value.
Color withAlpha(num a) { assert(a >= 0 && a <= 1); return Color.rgba(red, green, blue, a); }