The shade() function is an inbuilt function in the Python Wand ImageMagick library which is used to generates create a 3D effect by simulating a light from an elevated angle.
Syntax:shade(gray, azimuth, elevation)
Parameters: This function accepts three parameters as mentioned above and defined below:
- gray: This is a boolean parameter which stores the isolation effect. Default is ‘False’.
- azimuth: This parameter stores the angle from x-axis.
- elevation: This parameter stores the amount of angle from the z-axis.
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