static function resolveColor($color) {
        if(\is_int($color)) {
            return $color;
        }
        
        if(!\is_array($color)) {
            return \hexdec(((string) $color));
        }
        
        if(\count($color) < 1) {
            throw new \InvalidArgumentException('Color "'.\var_export($color, true).'" is not resolvable');
        }
        
        return (($color[0] << 16) + (($color[1] ?? 0) << 8) + ($color[2] ?? 0));
    }
static function resolveColor($color) {
        if(\is_int($color)) {
            return $color;
        }
        
        if(!\is_array($color)) {
            return \hexdec(((string) $color));
        }
        
        if(\count($color) < 1) {
            throw new \InvalidArgumentException('Color "'.\var_export($color, true).'" is not resolvable');
        }
        
        return (($color[0] << 16) + (($color[1] ?? 0) << 8) + ($color[2] ?? 0));
    }
static function resolveColor ( $ color ) { if ( \ is_int ( $ color ) ) { return $ color ; } if ( ! \ is_array ( $ color ) ) { return \ hexdec ( ( ( string ) $ color ) ) ; } if ( \ count ( $ color ) < 1 ) { throw new \ InvalidArgumentException ( 'Color "' . \ var_export ( $ color , true ) . '" is not resolvable' ) ; } return ( ( $ color [ 0 ] << 16 ) + ( ( $ color [ 1 ] ?? 0 ) << 8 ) + ( $ color [ 2 ] ?? 0 ) ) ; }
Resolves a color to an integer.
@param array|int|string  $color
@return int
@throws \InvalidArgumentException
Resolves a color to an integer .