filestack/Filelink.php
public function shadow($background = 'white', $blur = 4,
                           $opacity = 60, $vector = [4,4])
    {
        $options = [
            'b' => $background,
            'l' => $blur,
            'o' => $opacity,
            'v' => $vector
        ];

        // call TransformationMixin function
        $this->setTransformUrl('shadow', $options);

        return $this;
    }
public function shadow($background = 'white', $blur = 4,
                           $opacity = 60, $vector = [4,4])
    {
        $options = [
            'b' => $background,
            'l' => $blur,
            'o' => $opacity,
            'v' => $vector
        ];

        // call TransformationMixin function
        $this->setTransformUrl('shadow', $options);

        return $this;
    }
public function shadow ( $ background = 'white' , $ blur = 4 , $ opacity = 60 , $ vector = [ 4 , 4 ] ) { $ options = [ 'b' => $ background , 'l' => $ blur , 'o' => $ opacity , 'v' => $ vector ] ; // call TransformationMixin function $ this -> setTransformUrl ( 'shadow' , $ options ) ; return $ this ; }
Set this Filelink's transform_url to include the shadow task

@param string    $background     Sets the background color to display behind
the image. This can be the word for a color,
or the hex color code, e.g. ('red' or 'FF0000')
@param int       $blur           Sets the level of blur for the shadow effect.
Value range is 0 to 20.
@param int       $opacity        Sets the opacity level of the shadow effect.
Value range is 0 to 100.
@param array     $vector         Sets the vector of the shadow effect. The
value must be an array of two integers in a
range from -1000 to 1000. These are the
X and Y parameters that determine the position
of the shadow.

@throws FilestackException   if API call fails, e.g 404 file not found

@return Filestack/Filelink
Set this Filelink s transform_url to include the shadow task