The editor complains it does not return a Uniform<T>, but a Uniform<Color>.  But I have a better idea now.  Since we have generics in Dart, maybe we can just replace all these factory constructors by a single generic one (that takes a T).  Would be very elegant.