If the input object has r,g&b properties, it will return a fully- formed Rgb type with unit and space properties.
unit
space
If it lacks these basic three properties or they are out of range, undefined is returned.
If RGB values are less than 1 assumes unit:scalar. Otherwise unit:8bit. If RGB values exceed 255, undefined returned.
If the input object has r,g&b properties, it will return a fully- formed Rgb type with
unitandspaceproperties.If it lacks these basic three properties or they are out of range, undefined is returned.
If RGB values are less than 1 assumes unit:scalar. Otherwise unit:8bit. If RGB values exceed 255, undefined returned.