src/Compiler.php
public function assertColor($value)
    {
        if ($color = $this->coerceColor($value)) {
            return $color;
        }

        $this->throwError('expecting color, %s received', $value[0]);
    }
public function assertColor($value)
    {
        if ($color = $this->coerceColor($value)) {
            return $color;
        }

        $this->throwError('expecting color, %s received', $value[0]);
    }
public function assertColor ( $ value ) { if ( $ color = $ this -> coerceColor ( $ value ) ) { return $ color ; } $ this -> throwError ( 'expecting color, %s received' , $ value [ 0 ] ) ; }
Assert value is a color

@api

@param array $value

@return array

@throws \Exception
Assert value is a color