Python – shade() function in Wand
shade() function generates a 3d kind of image or creates a 3d effect by simulating a light from an elevated angle. azimuth parameter is used to control the X and Y angle and elevation parameter is used to control the z angle of the image. We can also get final image in grayscale by putting gray parameter as true.
wand.image.shade(gray, azimuth, elevation);
Parameter Input Type Description gray boolean Isolate the effect on pixel intensity. Default is False. azimuth numbers.real Angle from x-axis. elevation number.Real Amount of pixels from the z-axis.
Example 2: setting gray as False, increasing azimuth and elevation value.