The wave() function is an inbuilt function in the GraphicsMagick library which is used to alter an image along with a sine wave. The function returns the true value on success.
wave( amplitude, wavelength )
Parameters: This function accept two parameters as mentioned above and described below:
- amplitude: This parameter stores the value of the amplitude of the sine wave.
- wavelength: This parameter stores the value of the wavelength of the sine wave.
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.