The shade() function is an inbuilt function in the GraphicsMagick library which is used to shade the image using a distant light source. The function returns the true value on success.
shade( azimuthal angle, elevation angle )
Parameters: This function accept two parameters as mentioned above and described below:
- azimuthal angle: This parameter stores the value of the azimuthal angle.
- elevation angle: This parameter stores the value of the elevation angle.
Return Value: This function returns GraphicsMagick object with image added.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.