public static function Color2Rgb( $colorDefinition )
   {

      if ( \is_array( $colorDefinition ) )
      {
         if ( \count( $colorDefinition ) > 2 && \count( $colorDefinition ) < 5 )
         {
            return $colorDefinition;
         }
         throw new ArgumentError(
            'colorDefinition',
            $colorDefinition,
            'Drawing',
            'A (a)rgb(a) array with 3-4 Elements is required!'
         );
      }

      if ( static::IsHexFormat( $colorDefinition ) )
      {
         return static::Hex2Rgb( $colorDefinition );
      }

      $uc = \strtolower( $colorDefinition );

      if ( isset( static::$ColornameRGB[ $uc ] ) )
      {
         return static::$ColornameRGB[ $uc ];
      }

      if ( false !== ( $hex = static::Rgb2Hex( $colorDefinition ) ) )
      {
         return static::Hex2Rgb( $hex );
      }

      return false;

   }
public static function Color2Rgb( $colorDefinition )
   {

      if ( \is_array( $colorDefinition ) )
      {
         if ( \count( $colorDefinition ) > 2 && \count( $colorDefinition ) < 5 )
         {
            return $colorDefinition;
         }
         throw new ArgumentError(
            'colorDefinition',
            $colorDefinition,
            'Drawing',
            'A (a)rgb(a) array with 3-4 Elements is required!'
         );
      }

      if ( static::IsHexFormat( $colorDefinition ) )
      {
         return static::Hex2Rgb( $colorDefinition );
      }

      $uc = \strtolower( $colorDefinition );

      if ( isset( static::$ColornameRGB[ $uc ] ) )
      {
         return static::$ColornameRGB[ $uc ];
      }

      if ( false !== ( $hex = static::Rgb2Hex( $colorDefinition ) ) )
      {
         return static::Hex2Rgb( $hex );
      }

      return false;

   }
public static function Color2Rgb ( $ colorDefinition ) { if ( \ is_array ( $ colorDefinition ) ) { if ( \ count ( $ colorDefinition ) > 2 && \ count ( $ colorDefinition ) < 5 ) { return $ colorDefinition ; } throw new ArgumentError ( 'colorDefinition' , $ colorDefinition , 'Drawing' , 'A (a)rgb(a) array with 3-4 Elements is required!' ) ; } if ( static :: IsHexFormat ( $ colorDefinition ) ) { return static :: Hex2Rgb ( $ colorDefinition ) ; } $ uc = \ strtolower ( $ colorDefinition ) ; if ( isset ( static :: $ ColornameRGB [ $ uc ] ) ) { return static :: $ ColornameRGB [ $ uc ] ; } if ( false !== ( $ hex = static :: Rgb2Hex ( $ colorDefinition ) ) ) { return static :: Hex2Rgb ( $ hex ) ; } return false ; }
Converts the defined color into a RGB color definition (a numeric indicated array 0=R 1=G 2=B

@param  string|array $colorDefinition Color name or hexadecimal color definition
@return array Or boolean FALSE
@throws \Beluga\ArgumentError
Converts the defined color into a RGB color definition ( a numeric indicated array 0 = R 1 = G 2 = B