The swirl() function is an inbuilt function in the Python Wand ImageMagick library which is used to around the center of the image. The degrees specify the tightness of the swirl.
Parameters: This function accepts two parameters as mentioned above and defined below:
- degree: This parameter stores the degrees in angle between 0 to 360.
- method: This parameter stores the method which controls interpolation of the effected pixels. Some of the available methods are ‘undefined’, ‘average’, ‘average9’, ‘average16’, ‘background’, ‘bilinear’, ‘blend’, ‘catrom’, ‘integer’, ‘mesh’, ‘nearest’, ‘spline’
Return Value: This function returns the Wand ImageMagick object.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course