Method Image.Color.Color()->cast() Method cast (array)Image.Color.Color()(string)Image.Color.Color() Description cast the object to an array, representing red, green and blue (equal to ->rgb()), or to a string, giving the name (equal to ->name()). Returns the name as string or rgb as array See also rgb, name