Converts an object containing r, g, b and a properties into a Color class instance.
r
g
b
a
An object containing r, g, b and a properties in the range 0 to 255.
A Color object.